toh
09-16-2002, 05:27 PM
i create a button to start and stop the song.
the scripts is :
song = new Sound();
song.attachSound("my_song");
count = 0;
option = "Start";
_root.playButton.onRelease = function() {
count++;
if (count%2 != 0) {
song.start();
option = "Stop";
} else {
song.stop();
option = "Start";
}
};
its ok at first, but when i add a movie clip in a new layer, its not functioning quite right.
can someone please tell me whats the problem???
THANKS!!!
the scripts is :
song = new Sound();
song.attachSound("my_song");
count = 0;
option = "Start";
_root.playButton.onRelease = function() {
count++;
if (count%2 != 0) {
song.start();
option = "Stop";
} else {
song.stop();
option = "Start";
}
};
its ok at first, but when i add a movie clip in a new layer, its not functioning quite right.
can someone please tell me whats the problem???
THANKS!!!