PDA

View Full Version : Sound stop/play buttons



alcinoe
March 4th, 2007, 04:49 PM
Hi - I am trying to make a background loop which will play automatically when a page loads and to display a stop button which will stop the music when clicked.
I managed to do this much, however, when the stop button is clicked, I would like to display a play button which will start the music again when clicked. I could not figure out how to do this. I've read several tutorials, but some of them seem outdated and others did not seem to work.
Can anyone give me some advice or direct me to a tutorial which would explain how to do this correctly?
Here is the FLA so far: http://www.seniorspin.com/MyMusic.fla
Thanks, Elizabeth

Esoltas
March 4th, 2007, 06:51 PM
The fixed file's too big for attachement here.

Evan

alcinoe
March 5th, 2007, 05:58 PM
Thank you again, Evan, and thanks for letting me post the result in case others might like to see it.

The buttons work perfectly - the music starts playing automatically and when the "music off " button is clicked the music turns off and the button changes to a "music on" button.

I added a line to lower the volume, which works somewhat - it does seem to be louder when the music is turned back on - it doesn't bother me too much.

Here is the fla:

http://www.seniorspin.com/FlashSamples/MyMusic.fla

Elizabeth