flash ad - user initiated audio
- Started
- Last post
- 10 Responses
- stoplying0
@moldero - I imported the flv into the main timeline, then published a swf. So I just hand off the swf to the client...
Sorry, I'm a total noob at flash..
- stoplying0
Isn't there something like:
on rollover, play sounds
on rollout, stop all sounds?
- ifeltdave0
video.sound = shhh;
- fyoucher10
If you're using AS2, you can do the following:
//target_mc is whatever movieclip you're loading the FLV-SWF into.
var flvSound:Sound = new Sound(target_mc);
flvSound.setVolume(50);... or ... control it from a button
my_btn.onRelease = function():Void {
flvSound.setVolume(50);
};
- fyoucher10
Personally, I wouldn't put it on the timeline.
If you need it in an external SWF, just click the export for actionscript setting for the sound in the library and give it a linkage ID. Then add it dynamically using a function created it that SWF. Then you can control it from the other SWF by calling those functions after the SWF has finished loading.
function createSound():Void {
var my_sound:Sound = new Sound();
my_sound.attachSound("sound_id...
my_sound.start();
}then from the main SWF you could call something like target_mc.createSound(); but make sure that external SWF is loaded first before you call it.
- Frosty_spl0
Don't use sound unless it's in a video. Or you are a scuttlebutt.
- CyBrainX0
Use a loaded FLV. You'll probably have to anyway because of file size limitations from the host site. Then, on rollover fade up the sound using the sound class. Don't make it an abrupt change from 0 to 1. That will ruin it.
- moldero0
tell them to make sure the ad goes right under the main browser controls so users are almost forced to roll over it, users love that shit.
- moldero0
so its a .swf calling a .flv?
- zaq0
use volume