MovieClip Speed AS?

Subscribe to MovieClip Speed AS? 7 posts

Sign in to reply


 
avatar for LOL_at_U LOL_at_U 5 posts
Flag Post

in actionscript 2.0 how might i use actionscript to increase the framerate of a movieclip when a certain thing happens for example on a button with the on(release) {
}

handler

how could i make the button increase the framerate of my movieclip or the speed at which it is played?

 
avatar for MCOBigBen MCOBigBen 256 posts
Flag Post

I’ve heard it said that you can’t change the framerate of a running swf (or at least, you can’t change it through AS)

 
avatar for ssjskipp ssjskipp 258 posts
Flag Post

In AS2, you cannot change the frame rate at runtime. Only AS3 can do that.

Your best bet is to use a tweener package (TweenMax, Tweener, gTween, etc), and tween the MC’s frame from wherever it starts to the end in less time or more time, depending.

 
avatar for LOL_at_U LOL_at_U 5 posts
Flag Post

ok well thank you anyway. i guess i cant make my game :*(

 
avatar for jonathanasdf jonathanasdf 3835 posts
Flag Post

you can, however, use timers instead… (setInterval, setTimeout)

 
avatar for Rivaledsouls Rivaledsouls 965 posts
Flag Post

You can change the framerate in AS3?

 
avatar for jonathanasdf jonathanasdf 3835 posts
Flag Post

yeah…. stage.framerate = x….

Sign in to reply