Control dynamically your FPS
If you look for 'control dynamically the speed of your animation' on Flash sites you will find different methods but they all work by skipping frames. That means loss of smoothness and precision in the movement, loss of quality in the animation.
A better way is to modify the frame rate of the movieclip at runtime.
This tutorial introduces the use of the FPS Controller component. We will use it to modify the speed of an imported animated gif while playing by increasing and reducing the frame rate using the arrows keys, and display this speed. Like this:
RIGHT key to increase speed
LEFT key to reduce speed
CTRL key to pause the animation
SPACE key to unpause
This requires basic to intermediate knowledge of actionscript. Be careful with instance names!
I used Flash MX 2004.
|» Level Intermediate|
Rating: 7.56 Votes: 9
|Download the files used in this tutorial.|
|Download (346 kb)|
|More help? Search our boards for quick answers!|