Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

play sound problem

Status
Not open for further replies.

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...???
 
Well the idea is the code the opposite in the second button (which is on frame 2), but i didnt even do that yet so there are no actions on frame2 at all.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top