The three unseen threats in the air we breathe yes 02252017 final
Yes, you can do that with AIR 2.0
-
Upload
peter-elst -
Category
Technology
-
view
1.646 -
download
1
description
Transcript of Yes, you can do that with AIR 2.0
Yes, you can do that with AIR 2.0!
• Who am I?
• Freelance Flash Platform Consultant• Adobe Community Professional• Author of “Object-Oriented ActionScript 3.0”• Founding Partner of Project Cocoon
• What are we talking about?
• Adobe AIR limitations & opportunities• What is new in AIR 2.0?• What is already possible in AIR 1.x?• API Examples• Q&A
• Some things clients ask
• I want an AIR app as a front-end to our software• I want to have a native installer• I want control over hardware• I want advanced printing controls• I want to handle secure connections• …
• My usual answer
Yes, you can!(with AIR 2.0)
• The limitations
• AIR 1 is limited by its security model• Increased low level access means giving up some of the cross-platform abstraction• Not everything you want to do will be possible using AIR APIs, but you can delegate it
• What is new in AIR 2.0?
• Support for TLS/SSL sockets• Enhanced printing support• Mass storage detection (e.g. USB drives)• Ability to listen to sockets, UDP support• Native processes• Raw microphone access• Multi-touch gestures• …
• So what you can do in AIR 1?
• Adobe AIR is not limited to Twitter clients• You can do some great applications right now
• HTML support
• AIR has an embedded Webkit HTML engine• HTML is integrated in the Flash display list
flash.html.HTMLLoadermx.controls.HTML
• Example
• Filesystem access
• AIR can read, write, delete files and folders• File paths are abstracted and OS independent
flash.filesystem.Fileflash.filesystem.FileStream
• Example
• SQLite database
• AIR has an embedded SQLite database engine• Databases are container in a single file
flash.data.SQLConnectionflash.data.SQLStatement
• Example
• Drag ‘n Drop
• AIR supports drag ‘n drop between applications• Allows you to set the drag data and image
flash.events.NativeDragEventflash.desktop.NativeDragManager
• Example
• Clipboard access
• Control an OS wide clipboard• Assign clipboard data in one or more formats
flash.desktop.Clipboard
• Example
• AIR 2.0 examples
• Open files with their default application• Launching native processes• Working with USB mounted devices• Binding to a socket
• Native processes
• Open a file with its default application• Launch an executable with optional arguments
flash.desktop.NativeProcessflash.desktop.NativeProcessStartupInfo
• Example
• Storage Volume Detection (USB)
• Get mount and unmount events for USB devices• Works for devices that expose themselves to the
OS as a hard drive
flash.filesystem.StorageVolumeInfoflash.events.StorageVolumeInfoEvent
• Example
• ServerSocket connection
• Set up a persistent socket connection• Listen for incoming data or send data
flash.net.ServerSocketflash.events.ServerSocketConnectEvent
• Example
• AIR is coming to Android!
+
• Questions?
• Get in touch
Questions, feedback – let me know!
Blog www.peterelst.comEmail [email protected] @peterelst