Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Load the next track(sound)

Status
Not open for further replies.

bigdet313

Technical User
Feb 17, 2004
2
US
I have embedded 5 music files and i want the second song to Play after the the first song is over, then the third song and so on.

I already have it so that u can click the track number but i want the songs to play one after the other.

here is the site
 
you could use the onSoundComplete() function

Code:
my_sound = new Sound();
my_sound.attachSound("mySoundID");
my_sound.onSoundComplete = function() {
  trace("mySoundID completed");
//you could put attachSound("yoursong"); here 
}
my_sound.start();

gd luck

Martin

Computing help and info:

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top