Try this: [as] sTime=getTimer() count=0 onEnterFrame=function(){ count++ split=getTimer()-sTime fps=Math.round(count/split*1000) } [/as]
Works great for me in the ide. M > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Michael Kønig > Sent: 02 May 2006 15:37 > To: flashcoders@chattyfig.figleaf.com > Subject: [Flashcoders] Can this be true? > > At this link there is a swf embeded in a html with a 5 line > script that measures fps: > > http://www.fla10.com/test/test.html > > The movie is set to 30 fps but plays at around 23 and I have > a good computer! > > Does flash automatically loose this much power and I just > never noticed?? > > What numbers are you guys getting? > > /Michael > > > _______________________________________________ > 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 > _______________________________________________ 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