The code is very simple:
init = function () {
        initGame();
        f = 0;
        this.createTextField("ttttt", 1000, 10, 10, 100,100);
        this.onEnterFrame = function() {
                f++;
        };
        setInterval(time, 1000);
};
time = function () {
        _root.ttttt.text=_root.f
        _root.f = 0;
};
init();

The funny thing is that if you just run the swf by itself without a browser it works fine.
You can try the swf here:

http://www.fla10.com/test/test.zip

Either that or I am going crazy....



From: "Mike Mountain" <[EMAIL PROTECTED]>
Reply-To: Flashcoders mailing list <flashcoders@chattyfig.figleaf.com>
To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com>
Subject: RE: [Flashcoders] Can this be true?
Date: Tue, 2 May 2006 15:40:55 +0100

I get 23 too, I think there must be something wrong with the FPS counter code.

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


_______________________________________________
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