dumpala
2-23-06, 02:58 PM
Hi
I have 3 sound files imported into my Flash library. I need them to play one after the other in a sequence when clicked on a play button. To explain it clearly, for example I have sound1.mp, sound2.mp3, sound3.mp3. In the Linkage Properties, I chose the option Export for Action Script. I have a button that says "Play all sounds". When this is clicked I want all the sound files to play in an order.
I tried using this:
On the actions fame I have :
voice = new Sound();
voice.attachSound ("sound2","sound1", "sound3"); //the order that I need it to play
stop();
On the button :
on (press){
voice.start();
}
But this doesn't play all the sound files. It only plays the first one that is "sound2". Is there a better way to do this?
Thanks in advance
Stevens
I have 3 sound files imported into my Flash library. I need them to play one after the other in a sequence when clicked on a play button. To explain it clearly, for example I have sound1.mp, sound2.mp3, sound3.mp3. In the Linkage Properties, I chose the option Export for Action Script. I have a button that says "Play all sounds". When this is clicked I want all the sound files to play in an order.
I tried using this:
On the actions fame I have :
voice = new Sound();
voice.attachSound ("sound2","sound1", "sound3"); //the order that I need it to play
stop();
On the button :
on (press){
voice.start();
}
But this doesn't play all the sound files. It only plays the first one that is "sound2". Is there a better way to do this?
Thanks in advance
Stevens