flash ad - user initiated audio
- Started
- Last post
- 10 Responses
- 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.
- Frosty_spl0
Don't use sound unless it's in a video. Or you are a scuttlebutt.
- 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.
- 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);
};
- ifeltdave0
video.sound = shhh;
- stoplying0
Isn't there something like:
on rollover, play sounds
on rollout, stop all sounds?
- 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..
- zaq0
use volume
- moldero0
so its a .swf calling a .flv?
- 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.
- stoplying
I have a flash banner 300x250 with audio.
The client wants the visual to loop but only hear the audio when you mouse over the ad.
The flash file now is basically an flv with sound that I imported to the Flash timeline and spit out a swf. Can I control the audio of the FLV if it's not on it's own layer in Flash? If so, how?