How do you loop a sound in flash AS3 when it ends?

后端 未结 8 1554
北海茫月
北海茫月 2020-12-16 02:47

What AS3 code is used to loop a sound using AS3?

8条回答
  •  星月不相逢
    2020-12-16 03:18

    I guess this what you looking for in case the voice/music file is in the library:

    var mysound:my_sound = new my_sound();
    mysound.play(0,2); // this will repeat the sound 2 times.
    

提交回复
热议问题