__Frame rate visualizer in Flash 8

How to make a “frame rate visualizer” in flash 8

Because some of my animations have slow frame rates if I use some bitmap or png images, or some big vector objects.

So, it is possible to make a real time “frame rate” visualizer for my flash animations?

Just like the frame rate viewer of some games.

Can anybody help me with the script?

Thanks a lot.