This content has been marked as final.
Show 2 replies
-
1. Re: How to change Movieclip frameRate ?
dmeN Jul 15, 2011 7:15 AM (in response to Kirubakaran Srinivasan)You can't alter the frame rate of a clip, though you can pretty much fake it using a timer. You just tell the clip to stop, and then peiodically tell it to go nextFrame... Since the timer is ms based, if you call it at 100 ms intervals, you get 10 fps. If you use 33 ms you'd get 30 fps. etc.
myClip.stop();
var t:Timer = new Timer(33);
t.addEventListener(TimerEvent.TIMER, update);
t.start();function update(e:TimerEvent):void
{
myClip.nextFrame();
if(myClip.currentFrame >= myClip.totalFrames){
myClip.gotoAndStop(1);
}
} -
2. Re: How to change Movieclip frameRate ?
kennethkawamoto2 Jul 15, 2011 7:23 AM (in response to Kirubakaran Srinivasan)You can make a MovieClip run slower, for example if you tell it to gotoAndStop() every other enterFrame event the MovieClip will run 2 x slower than the stage frameRate.



