PDA

View Full Version : Pause button


V-go
05-26-2003, 11:30 PM
Hey guys,

My pause button doesn't work. I know this issue have been discussed earlier but these threads do not resolve my problem.

I have a sound loaded. It plays fine.
Then I have a button with this code in it:

on (release)
{
_root.mySound.stop();
}

yep. the sound stops. very nice.

I have another button with this code:

on (release)
{
_root.mySound.start();
}

Now this doesn't work. No sound starts playing.
I don't do anything between stopping the sound and starting it again. As I understand, the start command should start to play the sound from it's beginning if no other parameter is used. Why doesn't it work? I will put in a position variable there as soon as the startbutton starts working in order to make a proper pause button.

I'm using a streamed mp3 from an external file. I have other buttons that skip songs and so on and these work fine. It's just the simple start button that bugs me.

rockman2023
05-26-2003, 11:45 PM
I dont understand why your sound isnt playing, the code seems legit. Are you loading sound by using mySound.loadSound(), or from an external swf? If you havent seen this already, go to http://www.kennybellew.com This is an excellent tutorial/overview on the Sound Object. It even explains how to pause, fast forward, and rewind your sound.

If you'd like, also check out this audioplayer (http://www.geocities.com/rockman2023/audioplayer.html) i made.