Skip to main content
Participating Frequently
February 26, 2009
Answered

How To MUTE A Sound Embedded In A Timeline Layer

  • February 26, 2009
  • 2 replies
  • 1938 views

I am developing a flash web site using ACTIONSCRIPT 3. There is a menu of small icons that, when one of them is clicked, the program loads the correspondent SWF into a loader and then presents it in a “virtual screen” ( a rectangular area ) in the web page. The problem is that some of these child SWFs have an embedded background sound and I DO NOT KNOW how to mute them from the main SWF when a user decides to do so by clicking a “mute” button.

Each SWF embedded sound has its own layer in its timeline and is set as Sync: Event, Repeat:1.

Any idea ?
This topic has been closed for replies.
Correct answer kglad
if the timeline sound is a streaming sound, stopping the timeline will stop the sound. otherwise, there is not way to control (ie, stop some and not stop others) individual sounds attached to timelines.

2 replies

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
February 27, 2009
if the timeline sound is a streaming sound, stopping the timeline will stop the sound. otherwise, there is not way to control (ie, stop some and not stop others) individual sounds attached to timelines.
kglad
Community Expert
Community Expert
February 26, 2009
you can use the SoundMixer.stopAll() method to stop all sounds.
Participating Frequently
February 27, 2009
Hi kglad

I need to specifically mute the sound contained in each specific loaded child SWFand, if possible, totally remove it from the computer's memory so it would not interfere with other sounds.