/ Published in: ActionScript 3
mute all the sounds in a particular SWF file
Expand |
Embed | Plain Text
//playBtn and pauseBtn are two basic buttons playBtn.addEventListener(MouseEvent.CLICK, playSound); pauseBtn.addEventListener(MouseEvent.CLICK, pauseSound); function playSound(event:MouseEvent):void{ SoundMixer.soundTransform = new SoundTransform(1); //This will unmute all sound from SWF. } function pauseSound(event:MouseEvent):void{ SoundMixer.soundTransform = new SoundTransform(0); //This will mute all sound from SWF. }
Comments
Subscribe to comments
You need to login to post a comment.

Title is wrong. This mutes all application not a movieclip.
Title is wrong. This mutes all application not a movieclip.