0
N.B.:我以不同于建议重复的方式调用声音变量。这就是为什么它是不一样的结构遵循这个问题的开始,
在我的应用程序,我已经使用了以下行嵌入音乐,在实际设备上通过Adobe AIR的运行:
停止嵌入音乐AS3
[Embed(source = '/inspiration.mp3')]
private var MyBack:Class;
private var back:Sound;
后来,每当我想打它,我用下面的代码:
back = (new MyBack()) as Sound;
back.play(0,9999);
它完美,问题是当我要停止音乐!我用过
back.stop(); 但它总是告诉我
1061: Call to a possibly undefined method stop through a reference with static type flash.media:Sound.
我到底做错了什么?
[Actionscript:在Adobe Flash CS4中停止声音]的可能重复(http://stackoverflow.com/questions/8980789/actionscript-stopping-sound-in-adobe-flash-cs4) – null