PDA

View Full Version : OS Script


ssaito
10-05-2006, 03:46 PM
Hi guys!! Im having problems with my Macintosh Projector, i work on a PC but im doing a cd that has to run on PC and MAC. I found out that Flash Player for MAC reduces the Frame Rate dramatically, but when changing the _quality of the movie, the animation goes to its original Frame Rate.

Soooo, what i want to do is the following, see if its possible to get the users OS and depending if its PC keep the _quality to HIGH and if its MAC set the _quality to MEDIUM or LOW.

Where can i find a script that captures the OS of the user?

sam

ssaito
10-05-2006, 04:13 PM
Ok guys i found out that with AS 3.0 you can do it, but it gives me alot of errors when i publish my AS 2.0 code. In case you guys want to know how to do it with AS 3.0, this is the code:

import flash.system.Capabilities;

//Trace it and see what you get

trace("os: " + Capabilities.os);

Doesnt work with AS 2.0 though. Does anybody know a way to do this with AS 2.0?

CyanBlue
10-05-2006, 04:27 PM
Howdy and Welcome... :)

Try this...
trace(System.capabilities.os);

ssaito
10-05-2006, 04:43 PM
Thanks mate! Worked perfectly!!