Is there a way to obtain system information or cpu information using Adobe Flex?
I want to bui开发者_StackOverflow社区ld a program built around my pc specs. Is there a way to access such information as how much ram I have or how much cpu usage is being consumed, etc.?
Nope, not in a Flex web app. The browser's security sandbox would prevent such information from being passed into a browser plugin.
You may be able to do this in AIR by using the NativeProcess functionality. You'd have to create your own program to get the system details you need and then pass them back to your running Flex Application. I imagine this approach would need completely different implementations for each platform you wanted to deploy to. ( Mac and PC ).
You could build a web service which runs on your PC and reports system stats upon request. From there, you could build a Flex app to display the information from the web service.
Frankly, this only really makes sense if you have a need to gather system stats across a network. Otherwise, Flextras' comment makes the most sense: use AIR or another language which has functionality for gathering system stats.
精彩评论