我有一个 Flash 动作脚本 3 问题。这是我的代码
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);
}
当我按下暂停按钮时,电影停止......但仍然在后台运行。我为什么这么说?因为当我点击播放时,电影不会恢复暂停的位置。当电影还在播放时,他将继续。有人可以告诉我如何像正常行为一样暂停和恢复电影。谢谢