1.嵌入式类。
声音文件存入库中,并且取好链接名称,比如:PianoMusic,那么控制声音就可以用如下代码。
var piano:PianoMusic = new PianoMusic(); var sndChannel:SoundChannel = piano.play();