How to loop external mp3 file?

Hi all,

In my flash movie i’ve loaded external mp3 file (rap.mp3)
code which i used is as per below.

on (release) {
stopAllSounds();
mySound = new Sound();
mySound.loadSound(“rap.mp3”, true);
mySound.start();
}

now i can hear sound when i release my button.

My problem is … It plays only once.

& i need to loop that sound till i stop it or press another sound button.

Bottom line is i need to loop my external mp3 file .

Plz help if u can…

I m not sure but may be we can use OnSoundComplete handler for that !!!

Plz try… & tell me how to do this.

hey right dont qoute me on how accurate this is because im at college and i havent got my actionscript dictionary on my college network anyway. ts something like in the mySound.start(); bit put mySound.start(9999); or something like that. There is a tutorial on kirupa for external mp3s which ive never had any problems with. But i totally cant find it lol have a look its within another tutorial i think

hope this kinda helps
-Tom

or it could be 0, 9999 lol :cyborg:

thanks for your quick reply dear,

But it is not working…

any other idea ???

well from what i gather u can’t use properties like loops or so on streaming media tho what if u jsut loaded all ur mp3s as ur movie is loading then handler ur sounds as events

so have this on ur button

on (release) {
stopAllSounds();
rap.start(0,2)
}

and this in ur actions frame
rap = new Sound();
rap.loadSound(“rap.mp3”)
works for me and u could just make a if loaded kinda script to see if that mp3 is loaded before ladoing he next one so u don;t slow it down to much

soundContainer = new Sound(this);
soundContainer.attachSound(“mySound.mp3”);
soundContainer.start(0, 99);

maybe that will work only works if ur externally loading th epages as well i i cant be arsed ready ur post again lol

Dear I need to Attach External Sound so we can’t use .attachsound
we have to use .loadSound(sound.mp3)

& after using this (0, 99) is not working…

Any other idea ??? :q:

http://www.kirupaforum.com/forums/showthread.php?t=54742

scotty(-: