web developers to use their existing web development skills, code and tools to build and deploy rich web applications and content to the desktop. Adobe AIR has a rich set of features, with support for building applications using HTML, JavaScript, Flex and Flash.”
File System • Native Window Chrome • Enhanced Drag and Drop • Stage3D • Captive Runtime • Stage Video Hardware Acceleration • h.264 Video Encoding • Front Camera Support* • Hi-Res Bitmap Support • Multitouch and Gestures • Native Text* • Encrypted local storage* • Native JSON • Accelerometer support • StageWebView • Screen Orientation support* http://www.adobe.com/products/air/features._sl_id-contentfilter_sl_featuredisplaytypes_sl_all.html * mobile only
this awesome new feature called native extensions. Trust me these are cool. Essentially, a native extension will let you extend the functionality of your AIR app so it can access the native capabilities of a device.”
EventDispatcher { protected var _extensionContext:ExtensionContext; private static const COMMAND_LIFE:String = "GetBatteryLife"; private static const COMMAND_INFO:String = "GetBatteryInfo"; public function BatteryStatus(){ super(); init(); } private function init():void { _extensionContext = ExtensionContext.createExtensionContext( "com.simplyprofound.BatteryStatus", "main" ); } /** * Returns the battery life in percent (0-1). * @return Number The percentage of battery life left on the iOS. Returns a value from 0 to 1. */ public function getBatteryLife():Number { return _extensionContext.call( COMMAND_LIFE ) as Number; } /** * Returns the current state of the battery on the iOS device. * @return int Value corresponding to the state of the battery. UNKNOWN, UNPLUGGED, CHARGING, FULL */ public function getBatteryState():int { return _extensionContext.call( COMMAND_INFO ) as int; } } } Actionscript Code