开发者

How to stop sounds?

开发者 https://www.devze.com 2023-01-06 01:27 出处:网络
How to stop this sound ? : MySound开发者_如何学Python.play(0,100,null); play returns a SoundChannel, which has a stop() method.See Documentation.

How to stop this sound ? :

MySound开发者_如何学Python.play(0,100,null);


play returns a SoundChannel, which has a stop() method. See Documentation.

Generates a new SoundChannel object to play back the sound. This method returns a SoundChannel object, which you access to stop the sound and to monitor volume.


var soundChannel:SoundChannel = MySound.play(0, 100, null);
...
soundChannel.stop();
0

精彩评论

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