Operating System Detection in Flash Player

Flex / AIR , Flash Add comments
Here is a great little script I found for detecting the OS. import flash.system.Capabilities; var flashPlayerVersion:String = Capabilities.version; var osArray:Array = flashPlayerVersion.split(' '); var osType:String = osArray[0]; //The operating system: WIN, MAC, LNX var versionArray:Array = osArray[1].split(',');//The player versions. 10,0,22,87 var majorVersion:Number = parseInt(versionArray[0]); var majorRevision:Number = parseInt(versionArray[1]); var minorVersion:Number = parseInt(versionArray[2]); var minorRevision:Number = parseInt(versionArray[3]);

5 responses to “Operating System Detection in Flash Player”

  1. loans Says:
    I propose not to hold back until you earn big sum of cash to order goods! You should just get the loans or just car loan and feel fine
  2. business loans Says:
    People deserve good life and loan or secured loan would make it much better. Just because people's freedom relies on money.
  3. Alyn Says:
    Heck of a job there, it absoultley helps me out.
  4. r41d Says:
    Hi

    Complete example about what you can do with Capabilities:

    http:/www.browserleaks.com/flash
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/system/Capabilities.html
  5. friv 5 Says:
    What you can do, the development and updating. you can do really well. Try okay.

Leave a Reply





Powered by Mango Blog. Design and Icons by N.Design Studio