Copy link to clipboard
Copied
In Adobe Flash Professional CC, how do you change the frame rate for different segments of the animation, instead of changing the frame rate for the whole animation?
I would really appreciate the help
Copy link to clipboard
Copied
use a timer to call a timer listener function that repeatedly executes nextFrame() applied to your movieclip.
p.s. you need to set the main apps framerate to be, at least, the fastest needed framerate.
Copy link to clipboard
Copied
Sorry, I'm completely new to Flash so I didn't really understand any of that.
Copy link to clipboard
Copied
just call startplayF and pass the movieclip, frame rate, start frame and end frame.
function startplayF(mc:MovieClip,framerate:int,startFrame:int,endFrame:int):void{
mc.startframe=startFrame;
mc.endframe=endFrame;
mc.gotoAndStop(startFrame);
mc.interval=setInterval(playF,1000/framerate,mc);
}
function playF(mc:MovieClip):void{
if(mc.endframe>mc.startframe){
mc.nextFrame();
} else {
mc.prevFrame();
}
if(mc.currentFrame==mc.endframe){
clearInterval(mc.interval);
}
}