I have an Flash action script 3 problem. This is my code
import flash.events.MouseEvent;
import flash.display.MovieClip;
import flash.ui.Mouse;
PlayButton.addEventListener(MouseEvent.CLICK, playButtonClick);
PauseButton.addEventListener(MouseEvent.CLICK, pauseButtonClick);
function playButtonClick(event_object:MouseEvent){
var currFrameP = MovieClip(root).currentFrame;
trace("Frame play = " + currFrameP);
MovieClip(root).StoryLine1.gotoAndPlay(currFrameP);
}
function pauseButtonClick(event_object:MouseEvent){
var currFrameS = MovieClip(root).currentFrame;
trace("Frame pause = " + currFrameS);
MovieClip(root).StoryLine1.gotoAndStop(currFrameS);
}
When i press Pause Button the movie stops ... but still goes in the background. Why i say that? Because when i hit Play the movie doesn't resume where was paused. He will resume as the movie was still playing. Can someone tell me how to pause and resume the movie like a normal behavior. Thanks