Download - FATC - AIR 2.0 workshop
![Page 1: FATC - AIR 2.0 workshop](https://reader034.vdocuments.mx/reader034/viewer/2022052522/554fa10cb4c905ad218b4a3d/html5/thumbnails/1.jpg)
AIR 2.0 workshop – Flash and the City
![Page 2: FATC - AIR 2.0 workshop](https://reader034.vdocuments.mx/reader034/viewer/2022052522/554fa10cb4c905ad218b4a3d/html5/thumbnails/2.jpg)
• Your hosts for this evening
![Page 3: FATC - AIR 2.0 workshop](https://reader034.vdocuments.mx/reader034/viewer/2022052522/554fa10cb4c905ad218b4a3d/html5/thumbnails/3.jpg)
• Who the hell are you?
Designer?Developer? Business type?
![Page 4: FATC - AIR 2.0 workshop](https://reader034.vdocuments.mx/reader034/viewer/2022052522/554fa10cb4c905ad218b4a3d/html5/thumbnails/4.jpg)
• 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
![Page 5: FATC - AIR 2.0 workshop](https://reader034.vdocuments.mx/reader034/viewer/2022052522/554fa10cb4c905ad218b4a3d/html5/thumbnails/5.jpg)
• Questions? Let us know!
![Page 6: FATC - AIR 2.0 workshop](https://reader034.vdocuments.mx/reader034/viewer/2022052522/554fa10cb4c905ad218b4a3d/html5/thumbnails/6.jpg)
• What do you need installed?
2.0
![Page 7: FATC - AIR 2.0 workshop](https://reader034.vdocuments.mx/reader034/viewer/2022052522/554fa10cb4c905ad218b4a3d/html5/thumbnails/7.jpg)
Let’s get this show on the road!
![Page 8: FATC - AIR 2.0 workshop](https://reader034.vdocuments.mx/reader034/viewer/2022052522/554fa10cb4c905ad218b4a3d/html5/thumbnails/8.jpg)
• 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
![Page 9: FATC - AIR 2.0 workshop](https://reader034.vdocuments.mx/reader034/viewer/2022052522/554fa10cb4c905ad218b4a3d/html5/thumbnails/9.jpg)
• How does it work?
SWF HTML
Adobe AIR runtime
Windows, Mac, Linux
![Page 10: FATC - AIR 2.0 workshop](https://reader034.vdocuments.mx/reader034/viewer/2022052522/554fa10cb4c905ad218b4a3d/html5/thumbnails/10.jpg)
Hello World
<hello />
![Page 11: FATC - AIR 2.0 workshop](https://reader034.vdocuments.mx/reader034/viewer/2022052522/554fa10cb4c905ad218b4a3d/html5/thumbnails/11.jpg)
• Network detection
• Detect network status changes• Monitor access to a URL or socket
air.net.URLMonitorair.net.SocketMonitor
![Page 12: FATC - AIR 2.0 workshop](https://reader034.vdocuments.mx/reader034/viewer/2022052522/554fa10cb4c905ad218b4a3d/html5/thumbnails/12.jpg)
• Example: 001_network
![Page 13: FATC - AIR 2.0 workshop](https://reader034.vdocuments.mx/reader034/viewer/2022052522/554fa10cb4c905ad218b4a3d/html5/thumbnails/13.jpg)
• Windowing
• Create application windows at runtime• Window look ‘n feel is based on OS• Allows custom shaped UI windows
flash.display.NativeWindowflash.display.NativeWindowInitOptions
![Page 14: FATC - AIR 2.0 workshop](https://reader034.vdocuments.mx/reader034/viewer/2022052522/554fa10cb4c905ad218b4a3d/html5/thumbnails/14.jpg)
• Example: 002_windowing
![Page 15: FATC - AIR 2.0 workshop](https://reader034.vdocuments.mx/reader034/viewer/2022052522/554fa10cb4c905ad218b4a3d/html5/thumbnails/15.jpg)
• HTML support
• AIR has an embedded Webkit HTML engine• HTML content is integrated in the display list
flash.html.HTMLLoadermx.controls.HTML
![Page 16: FATC - AIR 2.0 workshop](https://reader034.vdocuments.mx/reader034/viewer/2022052522/554fa10cb4c905ad218b4a3d/html5/thumbnails/16.jpg)
• Example: 003_HTML
![Page 17: FATC - AIR 2.0 workshop](https://reader034.vdocuments.mx/reader034/viewer/2022052522/554fa10cb4c905ad218b4a3d/html5/thumbnails/17.jpg)
• Filesystem access
• AIR can read, write, delete files and folders• File paths are abstracted and OS independent
flash.filesystem.Fileflash.filesystem.FileStream
![Page 18: FATC - AIR 2.0 workshop](https://reader034.vdocuments.mx/reader034/viewer/2022052522/554fa10cb4c905ad218b4a3d/html5/thumbnails/18.jpg)
• Example: 004_File
![Page 19: FATC - AIR 2.0 workshop](https://reader034.vdocuments.mx/reader034/viewer/2022052522/554fa10cb4c905ad218b4a3d/html5/thumbnails/19.jpg)
• SQLite database
• AIR has an embedded SQLite database engine• Databases are container in a single file
flash.data.SQLConnectionflash.data.SQLStatement
![Page 20: FATC - AIR 2.0 workshop](https://reader034.vdocuments.mx/reader034/viewer/2022052522/554fa10cb4c905ad218b4a3d/html5/thumbnails/20.jpg)
• Example: 005_SQLite
![Page 21: FATC - AIR 2.0 workshop](https://reader034.vdocuments.mx/reader034/viewer/2022052522/554fa10cb4c905ad218b4a3d/html5/thumbnails/21.jpg)
• 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 22: FATC - AIR 2.0 workshop](https://reader034.vdocuments.mx/reader034/viewer/2022052522/554fa10cb4c905ad218b4a3d/html5/thumbnails/22.jpg)
• Example: 006_DragDrop
![Page 23: FATC - AIR 2.0 workshop](https://reader034.vdocuments.mx/reader034/viewer/2022052522/554fa10cb4c905ad218b4a3d/html5/thumbnails/23.jpg)
• Clipboard access
• Control an OS wide clipboard• Assign clipboard data in one or more formats
flash.desktop.Clipboard
![Page 24: FATC - AIR 2.0 workshop](https://reader034.vdocuments.mx/reader034/viewer/2022052522/554fa10cb4c905ad218b4a3d/html5/thumbnails/24.jpg)
• Example: 007_Clipboard
![Page 25: FATC - AIR 2.0 workshop](https://reader034.vdocuments.mx/reader034/viewer/2022052522/554fa10cb4c905ad218b4a3d/html5/thumbnails/25.jpg)
• Native processes
• Open a file with its default application• Launch an executable with optional arguments
flash.desktop.NativeProcessflash.desktop.NativeProcessStartupInfo
![Page 26: FATC - AIR 2.0 workshop](https://reader034.vdocuments.mx/reader034/viewer/2022052522/554fa10cb4c905ad218b4a3d/html5/thumbnails/26.jpg)
• Example: 008_NativeProcess
![Page 27: FATC - AIR 2.0 workshop](https://reader034.vdocuments.mx/reader034/viewer/2022052522/554fa10cb4c905ad218b4a3d/html5/thumbnails/27.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 28: FATC - AIR 2.0 workshop](https://reader034.vdocuments.mx/reader034/viewer/2022052522/554fa10cb4c905ad218b4a3d/html5/thumbnails/28.jpg)
• AIR is coming to Android!
+
![Page 29: FATC - AIR 2.0 workshop](https://reader034.vdocuments.mx/reader034/viewer/2022052522/554fa10cb4c905ad218b4a3d/html5/thumbnails/29.jpg)
• Questions?