SWF's sound problem[SOLVED]


(billy2000) #1

Hello. Well i have a swf(actualy the logo) and the swf has sound. The problem is that the sound of the swf will not stop after the swf is removed form the stage. the code is like this:

[Embed(source="../assets/logo.swf")]private const movie:Class;
	private var swf:MovieClip = new movie();


Public function Title(){
if (FP.stage)
			{
				FP.stage.addChild(swf);
			}
			
			swf.stage.frameRate = 30;
			swf.x -= 24;
}

override public function update():void
{
if (time == 0)//after the swf finish
			{
				swf.stage.frameRate = 60;
				bg1 = addGraphic(background);
				FP.stage.removeChild(swf);
				G.splash1 = false;
				bg1.layer = 99;
				add(new PlayButton(112, 100));
				//timerFade = 40;
			}
}

Any ideas? THX.


(Abel Toy) #2

Try this:

import  flash.media.SoundMixer;

SoundMixer.stopAll();

(billy2000) #3

nope it still doing it . i even tryed this :

swf.soundTransform.volume = 0;

but nothing :confused:


(billy2000) #4

ok solved it. i played abit with soundtransform thing like this:

var muteTransform:SoundTransform = new SoundTransform();
                muteTransform.volume = 0;
                swf.soundTransform = muteTransform;

(Zachary Lewis) #5