Hey everyone,
I really need help, I looked at the tutes by Prom o floading mp3 dynamically, but I sitll dont know how I would loop them.
I am loading many sounds into flash dynamically. I have put the following code into the Sound object layer in frame 1:
mySound1 = new Sound();
mySound2 = new Sound();
mySound3 = new Sound();
mySound4 = new Sound();
each representing a different sound for a different button
Then I put the follwing code on each button to play each sound:
on(release) {
_root.nextSound=1;
_root.playMe=1;
_root.mySound1.loadSound(“Trance.mp3”,false);
}
But how do I make these sounds loop and not just play once like it is currently doing: I tried placing the follwoing code in various places but no luck:
loopSound = function () {
mySound1.onSoundComplete = loopSound;
I dont want to put all the sounds in flash, because my file size gets very big and takes forever to load. I just want to load the sounds individually, so when the user clicks on the play button of that specific sound it loops until he clicks on another sound or the stop button.
Please tell me that is not toomuch to ask. I have spent many hours trying to figure out the looping problem, But i know there are some action script Flash gurus here who can help me. Please HELPPPPPPP!
Thanks in advance.