Ask a Question related to Adobe Flash, Flex & Director, Design and Development.
-
Bill #1
Mute - toggle sound - single button - streaming sound
After researching the Flash Boards for awhile and gathering info, no
one (that I found) had a quick simple solution for a single button to
mute and toggle sound on and off for streaming sound. After gathering
bits and pieces from other posts, I came up with the following:
on (release) {
// Toggle a flag between TRUE and FALSE:
IamActive = not IamActive;
if (IamActive) {
// Mute sounds for "on" state of button
stopAllSounds();
} else {
// Override Mute for "off" state of button
myCurrentFrame = _currentframe
gotoAndPlay(myCurrentFrame);
}
}
I use streaming sound for synching movie parts to exact points of the
sound clip. I assign the above action script to a button. I found
that restarting the movie overrode the stopAllSounds, so using
gotoAndPlay and picking up at the current frame when the mouse was
released will turn the sound back on (thus making it look like a
toggle). The "IamActive if/else" script for the button is from
Macromedia.
Hope this helps some of you out there!
Bill Guest
-
How to Mute Sound in Camera
Hi I am using camera class to show atteched camera output in swf file. I dont need sound to play. Can any one help me to MUTE sound comming from... -
Mute sound script and cast member change
Hi I have imported a whistle sound that plays a set points within a movie. I want to be able to click a mute icon and stop that sound occuring... -
Sound problems - new instance of sound starts each time a button is clicke
Everything in my site works fine, until the navigation buttons are clicked a few times, then the background music restarts and plays over the music... -
mute mpeg sound?
Hi All, I'm using Director 8.5 with DirectMediaXtra handling the mpegs. I have controls for FF, Pause, Play etc which employ the movieRate=' '... -
toggle sound on/off
OOOOOHHHHHHH! that helps me a lot!!!!!! Thanks



Reply With Quote

