This adds a toggle behavior to the button.
The variable isPaused flips back and forth between true and false when this line executes:
isPaused = ! isPaused;
Then you use that variable to change the behavior or look of the button.
code:
isPaused = false;
this.movieClip.play_btn.onRelease =
function()
{
isPaused = ! isPaused;
if (isPaused) gotoAndStop(1);
else gotoAndStop(5);
};




Reply With Quote