You can set your framerate 60fps or 30fps and if you set your framerate 60fps, bitmap1 will last 5/60 secs. MovieClip uses frame based animation because this allows precise tuning of animation. But we can put an option to enable time based animation.
Is there an api call to query the project settings for fps? I'd like to generalize a class without using global variable directly and the api call would be useful.
Comments
You can set your framerate 60fps or 30fps and if you set your framerate 60fps, bitmap1 will last 5/60 secs. MovieClip uses frame based animation because this allows precise tuning of animation. But we can put an option to enable time based animation.
Thanks.
I'd like to generalize a class without using global variable directly and the api call would be useful.
Likes: chipster123