Skip to main content
Participant
January 5, 2014
Question

FLASH PRO CC - FRAME RATE ISSUES :(

  • January 5, 2014
  • 1 reply
  • 24298 views

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

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
January 5, 2014

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.

Participant
January 5, 2014

Sorry, I'm completely new to Flash so I didn't really understand any of that.

kglad
Community Expert
Community Expert
January 5, 2014

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);

}

}