-
1. Re: increase frame rate within flash animation
Ned Murphy Aug 10, 2011 8:52 AM (in response to ruthgordy)The frame rate is a one and only, so changing it in one place changes it every place.
-
2. Re: increase frame rate within flash animation
ruthgordy Aug 10, 2011 9:08 AM (in response to Ned Murphy)I did some google searches and some folks offered some coding that did not work and others said the same thing as you.
Looks like I'll have to adjust my timeline
Thanks
-
3. Re: increase frame rate within flash animation
relaxatraja Aug 10, 2011 11:37 PM (in response to ruthgordy)Ned is correct, your frame rate will affect the whole. but you can control that by assigning and reverting wherever you want by
stage.frameRate=30;
and at the specific frame you can revert it back as
stage.frameRate=24;
Try with this, but whever you apply if affect the whole.
-
4. Re: increase frame rate within flash animation
kennethkawamoto2 Aug 11, 2011 4:53 AM (in response to ruthgordy)You can tell your MovieClip to gotoAndStop() on enterFrame event. If you tell it to skip every other frame the MovieClip will play 2 x the speed of stage frameRate. If you tell it to go to the next frame on every other enterFrame event the MovieClip will play 1/2 the speed of stage frameRate.
This would only work for non-script, timeline based animation though.
-
5. Re: increase frame rate within flash animation
ruthgordy Aug 11, 2011 8:44 AM (in response to kennethkawamoto2)Ken,
I used your enterFrame event idea (along with frame labels on every other frame) and it works fine. Only issue is that I want the animation to keep looping but it does not - It goes back to frame 1 and stops there - any other suggestions.
Here is my sample coding for the timeline in AS3
addEventListener(Event.ENTER_FRAME,enterFrameFunction);
function enterFrameFunction(event:Event) {
gotoAndPlay("b");
}
addEventListener(Event.ENTER_FRAME,enterFrameFunction2);
function enterFrameFunction2(event:Event) {
gotoAndPlay("c");
}
-
6. Re: increase frame rate within flash animation
kennethkawamoto2 Aug 11, 2011 9:00 AM (in response to ruthgordy)An example. I have a MovieClip called
movieclipon stage. Thismoviecliphas stop() in the frame 1. Below will playmovieclipin the double speed of the stage frameRate, and it loops.import flash.events.Event; addEventListener(Event.ENTER_FRAME, enterFrame); function enterFrame(e:Event):void { var targetFrame:uint = movieclip.currentFrame + 2; if(targetFrame > movieclip.totalFrames) targetFrame = 0; movieclip.gotoAndStop(targetFrame); } -
7. Re: increase frame rate within flash animation
ruthgordy Aug 11, 2011 9:17 AM (in response to kennethkawamoto2)Thanks Ken
Got it to work with your help.




