help with embedded flash flv sound
- Started
- Last post
- 5 Responses
- spicoli
any flash gurus have a solution for this:
i need to make a mute button for a flv file embedded in a flash movie so the user can turn the sound on/off as the clip plays. i have been able to figure out how to turn sounds off globally with stopAllSounds(); but this doesn't seem to be the trick since you can't turn it back on.
ideas? suggestions?
- orkman0
Yeah do this. On your first frame:
mySound = new Sound();
Then for a SOUND OFF button do:
on (release) {
mySound.setVolume(0);
}Then on that button on the next frame on another button to do a SOUND ON type:
on (release) {
mySound.setVolume(100);
}Works for me!
- orkman0
Ooops types too fast. Make sure it's (100) instead of (10 0)
That sets the volume of the sound object to 100 or 0 or whatever voilume you want.
Good luck.
- spicoli0
thanks man. worked perfect. i tried 6 to 1 and half dozen of another various ways to get it happen.
appreciate the help!!!
- uncle_helv0
4
- orkman0
No problem. Happy to help!