all groups > flash (macromedia) > april 2006 >
You're in the

flash (macromedia)

group:

resume after pause


resume after pause web_rookie
4/21/2006 8:57:56 PM
flash (macromedia): on (press) {
this.stop()
}

this pauses my movie but how do you resume play? on same button?

Re: resume after pause Michael Gioffredi
4/21/2006 10:58:52 PM
If I could see the fla your trying, I could help you out. You should never
attach code to a clip like that. Instead, attach it to a frame and say
myMc.onPress = function () yada yada.

You could use a frame based approach to get something to happen after a
certain amount of time, but better yet, I would recommend using setInterval.

Search the flash help files for more info.

Re: resume after pause Wolf van Ween
4/21/2006 11:29:27 PM
initialize a variable in frame 1
var rootPlays:Boolean = new Boolean(false);
then in your handler
on(press) {
if (rootPlays) { this.stop()}
else {this.play()}
rootPlays = ! rootPlays;
AddThis Social Bookmark Button