Groups | Blog | Home
all groups > flash actionscript > august 2005 >

flash actionscript : detect platform in ActionScript?


kevinbaird
8/26/2005 11:40:00 PM
So how, with ActionScript, do you tell whether you're on a Mac or PC? Running
from a server or on a CD-ROM? Do you ask JavaScript to tell you about itself?

Specifically, I'm trying to detect whether I'm running on a Mac but not on
it's boot volume, because FLV won't play there unless I change the path
delimiter from / to : So I need to know when to do that.

Lingo has system and platform environment functions, but where are they in AS?
Is there something in System.capabilities that would tell me whether i'm on a
Mac's non-boot volume or ... not?

Thanks!

Rajesh199
8/27/2005 12:00:00 AM
hey !
use
trace(System.capabilities.os)
to detect OS

Rajesh
kevinbaird
8/29/2005 12:00:00 AM
Thank you. Now that I know what it's called I'll dig into the books for
System.capabilities.hasWorkingFLV so i know when to switch to ':' notation to
solve this problem here:
http://www.macromedia.com/go/3121b301

[quoted text, click to view]

AddThis Social Bookmark Button