Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I get system specs through Actionscript?

Status
Not open for further replies.

unthank

Programmer
Jan 31, 2007
3
GB
I'm working on a suite of games for schoolkids for an EU project. It has a very wide reach so I want to create a benchmark program that schools in countries all over Europe can visit and email me the results.

From this information, I'll be able to decide how complicated the games can be etc..

They aren't able (for a myriad of reasons) to just TELL me what specs their computers have.

Am I able to retrieve stuff like:
MHZ of machine
Processor of machine
System RAM
Monitor resolution

?

Many thanks in advance,

David
 
The short answer is NO - Flash is not designed to interact with system at all as it's meant to be purely web based. Desktop apps such as Director can do that but it needs to be desktop app, not web app.

The long answer: to test the speed of target processor you can measure the time it takes for Flash to do, say, a Math task for, say, million times. But then it's not accurate as it all depends on how many other processes are running at the time etc.

Kenneth Kawamoto
 
Ok,

thanks for the help - i'll have to write a benchmarky tool then - you're right in that it does depend on other processes, but that's the case when it's being used "for real" too I suppose.

Thanks for your help.

Cheers,

David
 
Good luck with your benchmark tool.

By the way in "real app" you can access the system info directly so it won't be affected by other processes.

In Director:

put baCPUInfo("vendor")
-- "GenuineIntel"

put baCPUInfo("type")
-- 15 (Pentium 4)

put baCPUInfo("speed")
-- 1978 (2GHz)

put baMemoryInfo("RAM")
-- 2146443264.0000 (2GB)

put baScreenInfo("width")
put baScreenInfo("height")
-- 1280
-- 1024


Kenneth Kawamoto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top