PDA

View Full Version : Multiple Music Tracks


WizMax
12-19-2005, 04:14 AM
hey everyone,

I've created a small music player which has the following:

Play button
stop button
horizontal volume slider

It plays one song at the moment. following is some of the current script:

bgSound = new Sound(this);
bgSound.attachSound("song1");

I want it to play more than one song so I gave the second song a linkage name of "song2". I then changed the script to

i=1;
bgSound = new Sound(this);
bgSound.attachSound("song"+i);

then made a button with the following script to change the song

on (release) {
i++;
}

This didn't seem to work anyone know why? This is my first time using sound with action scripting. Thanks for your help in advance.

amen0
12-19-2005, 10:35 AM
on (release) {
i++;
bgSound.attachSound("song"+i);
bgSound.start();
}

WizMax
12-20-2005, 07:39 PM
Thanks thats exactly what I needed!

by the way do you know if i can post flash movies in this forum using html?
I'd post it if I could.

amen0
12-20-2005, 07:44 PM
do u mean upload files ?--->when u got to the advanced Reply u can make an attachment
or do u mean in your signature
u must use
flash signature
(thanks falltimemusic)

WizMax
12-20-2005, 07:52 PM
well I have the movie uploaded on another site. i was just going to call it up from that address using html. is that possible if i just write the html code in the reply box? I notice when I edit the text it uses html tags, that is why I am asking.

amen0
12-20-2005, 08:05 PM
u should see this (i think)
http://www.actionscript.org/forums/misc.php3?do=bbcode