yes, you can do that with air 2.0

28
Yes, you can do that with AIR 2.0!

Upload: peter-elst

Post on 25-Jun-2015

1.647 views

Category:

Technology


1 download

DESCRIPTION

AIR 2.0 presentation at Flash and the City 2010

TRANSCRIPT

Page 1: Yes, you can do that with AIR 2.0

Yes, you can do that with AIR 2.0!

Page 2: 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

Page 3: Yes, you can do that with AIR 2.0

• 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

Page 4: Yes, you can do that with AIR 2.0

• 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• …

Page 5: Yes, you can do that with AIR 2.0

• My usual answer

Yes, you can!(with AIR 2.0)

Page 6: Yes, you can do that 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

Page 7: Yes, you can do that with AIR 2.0

• 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• …

Page 8: Yes, you can do that with AIR 2.0

• So what you can do in AIR 1?

• Adobe AIR is not limited to Twitter clients• You can do some great applications right now

Page 9: Yes, you can do that with AIR 2.0

• HTML support

• AIR has an embedded Webkit HTML engine• HTML is integrated in the Flash display list

flash.html.HTMLLoadermx.controls.HTML

Page 10: Yes, you can do that with AIR 2.0

• Example

Page 11: Yes, you can do that with AIR 2.0

• Filesystem access

• AIR can read, write, delete files and folders• File paths are abstracted and OS independent

flash.filesystem.Fileflash.filesystem.FileStream

Page 12: Yes, you can do that with AIR 2.0

• Example

Page 13: Yes, you can do that with AIR 2.0

• SQLite database

• AIR has an embedded SQLite database engine• Databases are container in a single file

flash.data.SQLConnectionflash.data.SQLStatement

Page 14: Yes, you can do that with AIR 2.0

• Example

Page 15: Yes, you can do that with AIR 2.0

• Drag ‘n Drop

• AIR supports drag ‘n drop between applications• Allows you to set the drag data and image

flash.events.NativeDragEventflash.desktop.NativeDragManager

Page 16: Yes, you can do that with AIR 2.0

• Example

Page 17: Yes, you can do that with AIR 2.0

• Clipboard access

• Control an OS wide clipboard• Assign clipboard data in one or more formats

flash.desktop.Clipboard

Page 18: Yes, you can do that with AIR 2.0

• Example

Page 19: Yes, you can do that with AIR 2.0

• AIR 2.0 examples

• Open files with their default application• Launching native processes• Working with USB mounted devices• Binding to a socket

Page 20: Yes, you can do that with AIR 2.0

• Native processes

• Open a file with its default application• Launch an executable with optional arguments

flash.desktop.NativeProcessflash.desktop.NativeProcessStartupInfo

Page 21: Yes, you can do that with AIR 2.0

• Example

Page 22: Yes, you can do that with AIR 2.0

• 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

Page 23: Yes, you can do that with AIR 2.0

• Example

Page 24: Yes, you can do that with AIR 2.0

• ServerSocket connection

• Set up a persistent socket connection• Listen for incoming data or send data

flash.net.ServerSocketflash.events.ServerSocketConnectEvent

Page 25: Yes, you can do that with AIR 2.0

• Example

Page 26: Yes, you can do that with AIR 2.0

• AIR is coming to Android!

+

Page 27: Yes, you can do that with AIR 2.0

• Questions?

Page 28: Yes, you can do that with AIR 2.0

• Get in touch

Questions, feedback – let me know!

Blog www.peterelst.comEmail [email protected] @peterelst