vivendi
Programmer
- May 12, 2005
- 34
Hello, i've got a problem when i try to play a mp3 file with flash.
I've got 2 frames, in the first frame is an image which is the 'play' button. If i press on the play button it goes to the second frame and it replace's the play button with a 'pause' button.
In the play button is this action script to play the song
//frame 1 - the play button.
my_sound.start();
gotoAndStop(2);
As you can see when the play button is pressed it should start playing a sound and switch to the second frame to change the play button into a pause button. The thing is that it doesnt play a song, but it does when i remove this line.
gotoAndStop(2);
But then it doesnt change the button anymore. Anyone an idea how to make this work...???
I've got 2 frames, in the first frame is an image which is the 'play' button. If i press on the play button it goes to the second frame and it replace's the play button with a 'pause' button.
In the play button is this action script to play the song
//frame 1 - the play button.
my_sound.start();
gotoAndStop(2);
As you can see when the play button is pressed it should start playing a sound and switch to the second frame to change the play button into a pause button. The thing is that it doesnt play a song, but it does when i remove this line.
gotoAndStop(2);
But then it doesnt change the button anymore. Anyone an idea how to make this work...???