3

Is it possible to retrieve computer information (RAM, hard drive size, cpu speed, etc.) using Adobe Flash? If so, can someone point me to a web site showing me how?

kemiller2002
  • 113,795
  • 27
  • 197
  • 251

2 Answers2

7

I don't think you can get RAM, hard disk size, or clock speed — Flash runs in a virtual machine, and it's probably set up to only give you information that pertains to its little world.

You can get a lot of other client information, such as how much RAM Flash is using, screen resolution, and whether the client has audio support. Check out the System and Capabilities classes.

a paid nerd
  • 30,702
  • 30
  • 134
  • 179
  • That's right. For security reasons you won't get more informations about the system, as these provided in those two classes. – TheHippo May 12 '09 at 15:45
0

If you want some idea of the client running this, you could also try to develop your own kinda "benchmark algorthme" and run it for a second or two.

My idea for this would be to do some "hidden rendering" in a loop or something combined with a timer and a "onFrame" counter. This way I could have a rough estimate on how many loops my algorithme would run thru.

It's not perfect I know, but I believe this approach would give a rough result which could help you decide what detail level your application should provide as default and then perhaps let the user decide in a preference/settings style too.

BerggreenDK
  • 4,915
  • 9
  • 39
  • 61