Try with this FPS counter

this.createTextField("fps_txt", 1000, 10, 10, 100, 100);

this.nLastFrame = getTimer();

this.onEnterFrame = function ()
{
        var nCurrentFrame = getTimer();
        var nFPS = Math.round(1000 / (nCurrentFrame - this.nLastFrame));
        this.fps_txt.text = nFPS;
        this.nLastFrame = nCurrentFrame;
}


Martin Tremblay
lvl

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to