Language Version : | ActionScript 3.0 |
Product Version : | Flex 4.12 |
Runtime Versions : | Flash Player 10, AIR 2.0 |
The Platform utility class constain several static methods to check what
desktop or mobile platform the application is running on.
protected static var _initilised:Boolean
protected static var _isAir:Boolean
protected static var _isAndroid:Boolean
protected static var _isBlackBerry:Boolean
protected static var _isBrowser:Boolean
protected static var _isDesktop:Boolean
protected static var _isIOS:Boolean
protected static var _isIPad:Boolean
protected static var _isLinux:Boolean
protected static var _isMac:Boolean
protected static var _isMobile:Boolean
protected static var _isWindows:Boolean
isAir:Boolean
[read-only]
Language Version : | ActionScript 3.0 |
Product Version : | Flex 4.12 |
Runtime Versions : | Flash Player 10, AIR 2.0 |
Returns true if the applciation is runing on a desktop AIR.
Implementation public static function get isAir():Boolean
isAndroid:Boolean
[read-only]
Language Version : | ActionScript 3.0 |
Product Version : | Flex 4.12 |
Runtime Versions : | Flash Player 10, AIR 2.0 |
Returns true if the applciation is runing on Android.
Implementation public static function get isAndroid():Boolean
isBlackBerry:Boolean
[read-only]
Language Version : | ActionScript 3.0 |
Product Version : | Flex 4.12 |
Runtime Versions : | Flash Player 10, AIR 2.0 |
Returns true if the applciation is runing on a BlackBerry.
Implementation public static function get isBlackBerry():Boolean
isBrowser:Boolean
[read-only]
Language Version : | ActionScript 3.0 |
Product Version : | Flex 4.12 |
Runtime Versions : | Flash Player 10, AIR 2.0 |
Returns true if the applciation is runing in a browser.
Implementation public static function get isBrowser():Boolean
isDesktop:Boolean
[read-only]
Language Version : | ActionScript 3.0 |
Product Version : | Flex 4.12 |
Runtime Versions : | Flash Player 10, AIR 2.0 |
Returns true if the applciation is runing on a Desktop OS.
Implementation public static function get isDesktop():Boolean
isIOS:Boolean
[read-only]
Language Version : | ActionScript 3.0 |
Product Version : | Flex 4.12 |
Runtime Versions : | Flash Player 10, AIR 2.0 |
Returns true if the applciation is runing on IOS.
Implementation public static function get isIOS():Boolean
isIPad:Boolean
[read-only]
Language Version : | ActionScript 3.0 |
Product Version : | Flex 4.12 |
Runtime Versions : | Flash Player 10, AIR 2.0 |
Returns true if the applciation is runing on an iPad.
Note this returns false in the mobile device simulator.
Implementation public static function get isIPad():Boolean
isLinux:Boolean
[read-only]
Language Version : | ActionScript 3.0 |
Product Version : | Flex 4.12 |
Runtime Versions : | Flash Player 10, AIR 2.0 |
Returns true if the applciation is runing on Linux.
Implementation public static function get isLinux():Boolean
isMac:Boolean
[read-only]
Language Version : | ActionScript 3.0 |
Product Version : | Flex 4.12 |
Runtime Versions : | Flash Player 10, AIR 2.0 |
Returns true if the applciation is runing on a Mac.
Implementation public static function get isMac():Boolean
isMobile:Boolean
[read-only]
Language Version : | ActionScript 3.0 |
Product Version : | Flex 4.12 |
Runtime Versions : | Flash Player 10, AIR 2.0 |
Returns true if the applciation is runing on a Mobile device.
Implementation public static function get isMobile():Boolean
isWindows:Boolean
[read-only]
Language Version : | ActionScript 3.0 |
Product Version : | Flex 4.12 |
Runtime Versions : | Flash Player 10, AIR 2.0 |
Returns true if the applciation is runing on Windows.
Implementation public static function get isWindows():Boolean
protected static function getPlatforms():void
Mon Mar 3 2014, 02:13 PM +11:00