Hi,
something like this?
var lastTime = getTimer();
onEnterFrame() {
   trace("fps="+(1/(getTimer()-lastTime)));
lastTime = getTimer()
}

greetz
JC


On 1/23/07, Holth, Daniel C. <[EMAIL PROTECTED]> wrote:


So I feel like this should be obvious, but is there built in functionality
in Flash 8 to get the FPS of the currently running SWF?

If there isn't, does anyone have some code snippets that do it?  I tried
setting intervals to check how many frames have passsed since the last
check, but that eventually gets unsynched and prints out incorrect data.

Thanks

Daniel Holth
I.S. Programmer
x5217   ||   J301


This e-mail and its attachments are intended only for the use of the
addressee(s) and may contain privileged, confidential or proprietary
information. If you are not the intended recipient, or the employee or agent
responsible for delivering the message to the intended recipient, you are
hereby notified that any dissemination, distribution, displaying, copying,
or use of this information is strictly prohibited. If you have received this
communication in error, please inform the sender immediately and delete and
destroy any record of this message. Thank you.
_______________________________________________
[email protected]
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

_______________________________________________
[email protected]
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