FPS-Meter (Frames Per Second) v2.0 is very simple but extremely useful component for Adobe Flash Lite v1.1, 2.0 and 2.1. It will help you in optimizing Flash Lite animations for smooth playback. I released first version of this component on my blog sometime ago.
Here you will find full source-code of this component and compiled .MXP (Adobe Extension Manager Package) file.
Click the filename below to download.
var timer:Number = 0;
txtFPS = Math.round(10 / ((getTimer() - timer) / 1000));
timer = getTimer();
gotoAndPlay(2);
You can also use same frame-based timers for doing other tasks, such as timely updating Battery Meter, Network Signal Strength Meter or reloading data from Internet.
Source-code for Flash Lite v1.1 is also included in the download and it is done in similar manner.
I hope this little piece of code will be helpful to you in your daily Flash Lite development.
--chall3ng3r 23:59, 31 May 2007 (UTC)
No related wiki articles found