You can use a frame rate detection code. There are many ways to do this
though.
Here is one reliable technique:
var lastValue:Number = new Date().valueOf();
var frameCounter:Number = 0;
var frameRate:Number = 0; //not average, just the amount of frames entered
in the last second
function onEnterFrame(){
frameCounter++;
if(new Date().valueOf() - lastValue>=1000){
lastValue = new Date().valueOf();
frameRate = frameCounter;
frameCounter = 0;
trace(frameRate);
}
}
On 5/24/06, Patrick Matte <[EMAIL PROTECTED]> wrote:
Hi, does anybody know where i could find a script to detect a user's cpu ?
I'm currently working on an application with lots of animation which uses
a
lot of cpu power. I would like to hide those animations for the low cpu
users because the application jams...
Thanks
_______________________________________________
[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