-
Play 10 frames and then goto - how?
On frame 1 I need an action on a button that plays an animation during 10 frames and then goto another scen - without putting an action on frame 10. Only one button action. Possible?
-
hi,
I'm not gonna ask why ...
mymc.onEnterframe=function(){
if(this._currentframe==10){
_root.someclip.gotoAndStop("something");
delete this.onEnterframe;
}
}
//poden
-
Why can't you put an action on frame 10?
You could always monitor (through an onEnterFrame...) the timeline's current frame being played, and when it's > 9, re-direct the playhead to some other labeled frame in whatever scene...
-
Because I have multiple buttons that plays the samt animation but then goto different scenes. Thanks for the script!!!
-
You could them simply differently set a global variable (_global.whereToGo), on each button, and then have the button simply play the the timeline...
code:
on(release){
_global.whereToGo = "traget1"; //"target2" for button 2, etc...
this.play();
}
//Then on frame 10...
stop();
this.gotoAndPlay(_global.whereToGo);
}
-
Thanks! Gonna try that one too!
/p
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|