Apr 29, 2004 #1 greengrassbrian Technical User Joined Mar 26, 2004 Messages 33 Location US does anyone know what kind of actions i would use to have a movie loop three times and then stop? -thanks!
does anyone know what kind of actions i would use to have a movie loop three times and then stop? -thanks!
Apr 29, 2004 #2 oldnewbie Technical User Joined Dec 6, 2000 Messages 9,142 Location CA You would need a blank first keyframe with... _global.loop++; Then on a last keyframe add this... if (_global.loop == 3){ stop(); } else { _global.loop++; gotoAndPlay(2); } Another way... First frame... this.onEnterFrame = function(){ if(_global.loop == 3){ this.stop(); delete this.onEnterFrame; } }; And on the PREVIOUS frame than the last one... _global.loop++; Upvote 0 Downvote
You would need a blank first keyframe with... _global.loop++; Then on a last keyframe add this... if (_global.loop == 3){ stop(); } else { _global.loop++; gotoAndPlay(2); } Another way... First frame... this.onEnterFrame = function(){ if(_global.loop == 3){ this.stop(); delete this.onEnterFrame; } }; And on the PREVIOUS frame than the last one... _global.loop++;