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.
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.