Looping music

Does anyone know how to loop music in flash mx using actionscript? I want the music file to play automatically when the frame is loaded without having to use a button to play it.

I’ll be very happy if anyone has any idea of how to do this…=)

Try attaching this to the first frame of your movie.

mySound = new Sound();
mySound.attachSound(“attach”);
mySound.start(0,2000);

You can change the number of loops by altering the 2000 thousand number, and remember to name your sound in the library, right click on your sound, click linkage that then click export for actionscript.

Hope this helps

Kyle:)

Thanks a lot man,the code i was trying was completely wrong!!

Thanks again… :rambo:

Your welcome

Glad it could help

Kyle:)