主题:  点击“暂停”按钮不管用,哪出错了?

apple

职务:普通成员
等级:1
金币:0.0
发贴:37
#12005/12/1 13:13:39
设置一个“暂停”按钮,想要实现点击它就停留在目前帧上,我写了个命令赋予它
on mouseup me
go to the frame
end

可是运行时,点击此按钮,不起作用,请教前辈们,哪出问题了



天堂

职务:普通成员
等级:1
金币:0.0
发贴:49
#22005/12/2 10:53:45
你要是想暂停舞台的和恢复舞台运动的话不应该用go the frame,不管用的

应该是
on mouseUp me
if the pauseState = TRUE then
go the frame+1
else
pause
end if
end
暂停加播放~~~~~~~



apple

职务:普通成员
等级:1
金币:0.0
发贴:37
#32005/12/8 10:10:14
非常感谢天堂



草原风

职务:版主
等级:5
金币:13.0
发贴:3489
#42005/12/9 15:57:25
pause 会把全部都停止播放,动画也是,附另一方法:
在帧通道上面做帧脚本:
globle mypause
on exitframe me
if mypause=true then
go to the frame
end if
end

在按钮上面的脚本:
globle mypause
on moseup me
mypause=!mypause
end

这样在按下按钮时,如果当前为播放,则在当前帧循环,如果当前是暂停,则继续播放下一帧或下一个跳转