Pausing a Flash movie

amillard64
amillard64 Community Member Posts: 23
Create a new layer at the top of your flash movie. Put one keyframe in the first frame of that layer and put this code in the actions panel for that frame:

Code:

var pause = "0";this.onEnterFrame = function(){if(pause == "0"){play();}else{stop();}}


Now in Lectora on the pause button put:onClickFlash CommandSet Variable: pause Value: 1On the play button put:onClickFlash CommandSet Variable: pause Value: 0That should fix the problem. If not let me know and if it's not sensitive information I'd be happy to look at it.-Mark