开发者

How can I stop all sound in flash using AS3?

What can I do to stop all sound in my movie using AS开发者_开发知识库3?


you need to import flash.media.soundmixer, then you may run the command soundmixer.stopAll();

this should stop all the sounds.


You can try this solution as well:

var sTransform:SoundTransform = new SoundTransform(1,0);
sTransform.volume = 0;
SoundMixer.soundTransform = sTransform;

Taken from HERE

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜