;

PDA

Click to See Complete Forum and Search --> : Controlling sound in a Flash Video file


parker1865
12-20-2002, 10:16 PM
this is driving me nuts!

i have a flash movie that gives the user options to select several .mpg clips which are loaded into Level1. Thats all well and good. But I'm also giving them the option of selecting a "director's commentary" track that cuts the sound of the .avi and plays a separate voiceover track.

My question is: how do I shut the sound off the .avi file on level1 from level0 ?

is there a way to control video on a different level?

the flash movie is at www.parkers.ws/other/meteor.html if that helps.



- Brad

Lightwave Network
12-21-2002, 03:55 AM
Not positive, but I don't think you can dynamically control the audio track in a video.

hp3
12-28-2002, 01:10 PM
-----
how do I shut the sound off the .avi file on level1 from level0 ?
-----
you create a sound object in the timeline containing the video and set the volume to 0 or allow the user to stop the sound.


soundcontrol = new Sound(this); //assuming movie is in _level1

// sound off button
on(release){
_level1.soundcontrol.stop();
}

or

// sound mute button
on(release){
_level1.soundcontrol.setVolume(0);
}


------
But I'm also giving them the option of selecting a "director's commentary" track that cuts the sound of the .avi and plays a separate voiceover track.
------
this might require a separate audio stream. how do you plan on achieving this?