Looping sounds is easy. Create your sound in the library. Give it a class name (we'll call ours SoundClip) and set it to export on the first frame. Then copy and paste this code:
var mySound:SoundClip= new SoundClip();
mySound.play(0,99);
The first number tells us where the sound should start, and the second number tells us how many times to loop it.
No comments:
Post a Comment