AS3 check for Mac OS


/ Published in: ActionScript 3
Save to your folder(s)

I needed this for a banner I was designing which had some problems with masked filters on Mac browser Flash Player version 10.3.181.14


Copy this code and paste it in your HTML
  1. import flash.system.Capabilities;
  2.  
  3. var macOS:Boolean;
  4.  
  5. if (Capabilities.os.toLowerCase().search("mac")>-1)
  6. {
  7. macOS = true;
  8. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.