maruda
May 3rd, 2003, 07:34 AM
how to write a code that play background music randomly?
i write these in the frame
bgmusic = new Sound();
bgmusic.loadSound("1.mp3", true);
in the movie
there are buttons with action
on (release) {
bgmusic.loadSound("1.mp3", true);
}
//there are some buttons with 1, 2, ....mp3 respectively, also null for stop..
then how to make it play background music randomly within 1, 2, 3.mp3?
i write these in the frame
bgmusic = new Sound();
bgmusic.loadSound("1.mp3", true);
in the movie
there are buttons with action
on (release) {
bgmusic.loadSound("1.mp3", true);
}
//there are some buttons with 1, 2, ....mp3 respectively, also null for stop..
then how to make it play background music randomly within 1, 2, 3.mp3?