developing with adobe air
DESCRIPTION
Developing with Adobe AIR presented at Flash Israel 2010TRANSCRIPT
![Page 1: Developing with Adobe AIR](https://reader036.vdocuments.mx/reader036/viewer/2022062418/554fa109b4c905ad218b4a3b/html5/thumbnails/1.jpg)
Developing with Adobe AIRPeter Elst – Flash Israel 2010
![Page 2: Developing with Adobe AIR](https://reader036.vdocuments.mx/reader036/viewer/2022062418/554fa109b4c905ad218b4a3b/html5/thumbnails/2.jpg)
Who am I?
• Freelance Flash Platform Consultant• Adobe Community Professional• Adobe User Group Manager• Author of «Object-Oriented ActionScript 3.0»• Founding Partner of Project Cocoon
![Page 3: Developing with Adobe AIR](https://reader036.vdocuments.mx/reader036/viewer/2022062418/554fa109b4c905ad218b4a3b/html5/thumbnails/3.jpg)
What will we talk about?
• How are AIR applications structured?• Examples of common features:
Network detection, windowing, Filesystem access, HTML support, local database support, drag ‘n drop, clipboard access, native processes
• What is new in the upcoming AIR 2.0?• Questions & answers
![Page 4: Developing with Adobe AIR](https://reader036.vdocuments.mx/reader036/viewer/2022062418/554fa109b4c905ad218b4a3b/html5/thumbnails/4.jpg)
AIR application structure
SWF HTML
Adobe AIR runtime
Windows, Mac, Linux
![Page 5: Developing with Adobe AIR](https://reader036.vdocuments.mx/reader036/viewer/2022062418/554fa109b4c905ad218b4a3b/html5/thumbnails/5.jpg)
Where to get AIR
• The Adobe AIR SDK is completely free of charge and can be downloaded here:
adobe.com/products/air/tools
• AIR 2.0 has a public beta available here:
labs.adobe.com/technologies/air2
![Page 6: Developing with Adobe AIR](https://reader036.vdocuments.mx/reader036/viewer/2022062418/554fa109b4c905ad218b4a3b/html5/thumbnails/6.jpg)
Network detection
• Detect network status changes• Monitor connection to a URL or server socket
001_network
air.net.URLMonitorair.net.SocketMonitor
![Page 7: Developing with Adobe AIR](https://reader036.vdocuments.mx/reader036/viewer/2022062418/554fa109b4c905ad218b4a3b/html5/thumbnails/7.jpg)
Windowing
• Create application windows at runtime• Window look ‘n feel is based on OS• Allows custom shaped UI windows
002_windowing
flash.display.NativeWindowflash.display.NativeWindowInitOptions
![Page 8: Developing with Adobe AIR](https://reader036.vdocuments.mx/reader036/viewer/2022062418/554fa109b4c905ad218b4a3b/html5/thumbnails/8.jpg)
HTML support
• AIR has an embedded Webkit HTML engine• HTML content is integrated in the display list
003_HTML003_HTML_displaylist
flash.html.HTMLLoadermx.controls.HTML
![Page 9: Developing with Adobe AIR](https://reader036.vdocuments.mx/reader036/viewer/2022062418/554fa109b4c905ad218b4a3b/html5/thumbnails/9.jpg)
Filesystem access
• AIR can read, write, delete files and folders• File paths are abstracted and OS independent
004_File
flash.filesystem.Fileflash.filesystem.FileStream
![Page 10: Developing with Adobe AIR](https://reader036.vdocuments.mx/reader036/viewer/2022062418/554fa109b4c905ad218b4a3b/html5/thumbnails/10.jpg)
SQLite database
• AIR has an embedded SQLite database engine• Databases are container in a single file
005_SQLite
flash.data.SQLConnectionflash.data.SQLStatement
![Page 11: Developing with Adobe AIR](https://reader036.vdocuments.mx/reader036/viewer/2022062418/554fa109b4c905ad218b4a3b/html5/thumbnails/11.jpg)
Drag ‘n drop
• AIR supports drag ‘n drop between applications• Allows you to set the drag data and image
006_DragDrop
flash.events.NativeDragEventflash.desktop.NativeDragManager
![Page 12: Developing with Adobe AIR](https://reader036.vdocuments.mx/reader036/viewer/2022062418/554fa109b4c905ad218b4a3b/html5/thumbnails/12.jpg)
Clipboard access
• Control an OS wide clipboard• Assign clipboard data in one or more formats
007_Clipboard
flash.desktop.Clipboard
![Page 13: Developing with Adobe AIR](https://reader036.vdocuments.mx/reader036/viewer/2022062418/554fa109b4c905ad218b4a3b/html5/thumbnails/13.jpg)
Native processes
• Open a file with its default application• Launch an executable with optional arguments
008_NativeProcess
flash.desktop.NativeProcessflash.desktop.NativeProcessStartupInfo
![Page 14: Developing with Adobe AIR](https://reader036.vdocuments.mx/reader036/viewer/2022062418/554fa109b4c905ad218b4a3b/html5/thumbnails/14.jpg)
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 15: Developing with Adobe AIR](https://reader036.vdocuments.mx/reader036/viewer/2022062418/554fa109b4c905ad218b4a3b/html5/thumbnails/15.jpg)
AIR for Android is coming
• Adobe has announced its working on AIR support for Android phones and tablets.
![Page 16: Developing with Adobe AIR](https://reader036.vdocuments.mx/reader036/viewer/2022062418/554fa109b4c905ad218b4a3b/html5/thumbnails/16.jpg)
Questions & answers
Email [email protected] www.peterelst.comTwitter @peterelstLinkedIn www.linkedin.com/in/peterelst
![Page 17: Developing with Adobe AIR](https://reader036.vdocuments.mx/reader036/viewer/2022062418/554fa109b4c905ad218b4a3b/html5/thumbnails/17.jpg)
Thanks and have fun with AIR!