Posted By

arpo on 04/29/09


Tagged


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

damarev
flashinit
KDR
visualadvance


Detect flash version


 / Published in: ActionScript 3
 

  1. import flash.system.Capabilities;
  2.  
  3. var flashPlayerVersion:String = Capabilities.version;
  4. var osArray:Array = flashPlayerVersion.split(' ');
  5. var osType:String = osArray[0]; //The operating system: WIN, MAC, LNX
  6. var versionArray:Array = osArray[1].split(',');//The player versions. 9,0,115,0
  7. var majorVersion:Number = parseInt(versionArray[0]);
  8. var majorRevision:Number = parseInt(versionArray[1]);
  9. var minorVersion:Number = parseInt(versionArray[2]);
  10. var minorRevision:Number = parseInt(versionArray[3]);

Report this snippet  

You need to login to post a comment.