My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package net.tw.util {
import flash.system.Capabilities;
/**
* @author Quentin T - http://toki-woki.net
*/
public class OS {
public static function isWindows():Boolean {
return Capabilities.os.indexOf("Win")==0;
}
public static function isMac():Boolean {
return Capabilities.os.indexOf("Mac")==0;
}
public static function isLinux():Boolean {
return Capabilities.os.indexOf("Linux")==0;
}
public static function isIE():Boolean {
return Capabilities.playerType=='ActiveX';
}
}
}

Change log

r71 by quentin.t on Apr 30, 2010   Diff
[No log message]
Go to: 
Project members, sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 530 bytes, 20 lines
Powered by Google Project Hosting