Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Disable Sound Button in Flash
From: Marc Hoffman, Poison Dart Frog Media
Date: Mon, 12 Jun 2000 21:03:52 +0100

At 06:12 AM 6/12/00 , you wrote:

>Could anyone point me to a resource that shows how I
>can add a "disable sound" button into a flash movie?
>
>Thanks,
>
>David Sparks


Hi David,
To toggle a single sound (such as a background loop) on and off, see
http://www.dartfrogmedia.com/toggle for clear instructions, a downloadable
example, and a very compact means of achieving the effect.

If you want to disable all sounds and then enable them again, there are a
couple of routes to go. In Flash3 I jsued to put all the sounds in a movie
clip (/sounds) nested in another movie clip (/container). I'd then use
TellTarget anytime I wanted one of the sounds to play. To disable all
sounds, I'd TellTarget /container to go to a frame where /sounds wasn't
present. This would defeat the TellTargets without any other problems (no
error messages for instance).

In Flash4 you would still use TellTarget to play sounds, and put them all
in a movie clip. But your toggle button could set a variable such as "mute"
to equal 1 or 0, and every button or frame action that targets a sound to
play could first evaluate "mute" to decide whether to implement the action
or not. My toggle scheme (URL above) could still be helpful in building the
movie clip that would have Set Variable Mute=1, Set Variable Mute=0, rather
than sounds, embedded in it.



Marc Hoffman

Poison Dart Frog Media
Flash portfolio: http://www.dartfrogmedia.com/portfolio


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
July 24-26, 2000, NEW YORK CITY, Hammerstein Ballroom
www.flashforward2000.com
Produced by United Digital Artists and lynda.com
Sponsored by Macromedia, Adobe Systems, Fusion, Inc, AtomFilms,
shockwave.com and Electric Rain.
1.877.4.FLASH.4 or (1.805.640.6679 outside the US and Canada)
Register before June 30 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: Disable Sound Button in Flash, David Sparks

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]