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

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

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.