fatc - air 2.0 workshop
TRANSCRIPT
AIR 2.0 workshop – Flash and the City
• Your hosts for this evening
• Who the hell are you?
Designer?Developer? Business type?
• What will we be talking about?
• What is Adobe AIR?• How does it work?• Playing with the APIs• What is new in AIR 2.0?
• Multi-touch in Flash and AIR• Working with data using SQLite• Building a simple web server
• Questions? Let us know!
• What do you need installed?
2.0
Let’s get this show on the road!
• What is Adobe AIR?
Adobe AIR is a cross-operating system runtime that lets developers combine HTML, AJAX, Adobe Flash, and Adobe Flex technologies to deploy rich Internet applications (RIAs) on the desktop
• How does it work?
SWF HTML
Adobe AIR runtime
Windows, Mac, Linux
Hello World
<hello />
• Network detection
• Detect network status changes• Monitor access to a URL or socket
air.net.URLMonitorair.net.SocketMonitor
• Example: 001_network
• Windowing
• Create application windows at runtime• Window look ‘n feel is based on OS• Allows custom shaped UI windows
flash.display.NativeWindowflash.display.NativeWindowInitOptions
• Example: 002_windowing
• HTML support
• AIR has an embedded Webkit HTML engine• HTML content is integrated in the display list
flash.html.HTMLLoadermx.controls.HTML
• Example: 003_HTML
• Filesystem access
• AIR can read, write, delete files and folders• File paths are abstracted and OS independent
flash.filesystem.Fileflash.filesystem.FileStream
• Example: 004_File
• SQLite database
• AIR has an embedded SQLite database engine• Databases are container in a single file
flash.data.SQLConnectionflash.data.SQLStatement
• Example: 005_SQLite
• 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: 006_DragDrop
• Clipboard access
• Control an OS wide clipboard• Assign clipboard data in one or more formats
flash.desktop.Clipboard
• Example: 007_Clipboard
• Native processes
• Open a file with its default application• Launch an executable with optional arguments
flash.desktop.NativeProcessflash.desktop.NativeProcessStartupInfo
• Example: 008_NativeProcess
• 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• …
• AIR is coming to Android!
+
• Questions?