@tagit - That confuses me I'm afraid. Where would I put this code? Maybe if I explain how I'm doing this it would help.
In Flash CS3 I'm creating a new Flash File (ActionScript 3.0)
Under components I select "Video" --> FLVPlayback and put an instance of that on the stage
With that selected, under "Parameters" - I keep all the defaults, and enter the path to my external flv file on the "source" line
Under Components-->Video - I select the MuteButton and drag it to the stage, onto the FLVPlayback screen.
From here, I can export the player and I've got the UI I want, except that the mute button, by default, is off (sound plays along with the video). What I need to do is set it so that by default, sound is muted - and a user can hit the Mute button to enable the sound.
Does your code above accomplish this, using the MuteButton component and displaying only it to the user (I don't want to include a volume bar - I was doing so only because I could not figure out how to mute the sound by default).
Main Topics
Browse All Topics





by: tagitPosted on 2008-01-20 at 19:53:22ID: 20703731
Here is an example from the language reference, note you could add the followiing function
function muteSound() {
audio_sound.setVolume(0);
}
Select allOpen in new window