1 Reply Latest reply on Oct 6, 2006 6:50 AM by coldMiner

    How to Detect OS

    Laurence604 Level 1
      I am working on a flash projector that will be on a CD. Depending on whether it is played on a PC or MAC (hybrid disc) a button in the file needs different fscommand actions based on the OS. How can I detect the OS and have the button execute the right command? I could just make two separate .fla files, one with MAC command and one with PC, but that's a bit tedious!

        • 1. Re: How to Detect OS
          coldMiner Level 1

          // The os property can return the following strings: "Windows XP", "Windows 2000", "Windows NT", "Windows 98/ME", "Windows 95", "Windows CE" (available only in Flash Player SDK, not in the desktop version), "Linux", and "MacOS".