fatc - air 2.0 workshop

29
AIR 2.0 workshop – Flash and the City

Upload: peter-elst

Post on 11-May-2015

615 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: FATC - AIR 2.0 workshop

AIR 2.0 workshop – Flash and the City

Page 2: FATC - AIR 2.0 workshop

• Your hosts for this evening

Page 3: FATC - AIR 2.0 workshop

• Who the hell are you?

Designer?Developer? Business type?

Page 4: FATC - AIR 2.0 workshop

• 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

• Questions? Let us know!

Page 6: FATC - AIR 2.0 workshop

• What do you need installed?

2.0

Page 7: FATC - AIR 2.0 workshop

Let’s get this show on the road!

Page 8: FATC - AIR 2.0 workshop

• 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

• How does it work?

SWF HTML

Adobe AIR runtime

Windows, Mac, Linux

Page 10: FATC - AIR 2.0 workshop

Hello World

<hello />

Page 11: FATC - AIR 2.0 workshop

• 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

• Example: 001_network

Page 13: FATC - AIR 2.0 workshop

• 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

• Example: 002_windowing

Page 15: FATC - AIR 2.0 workshop

• 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

• Example: 003_HTML

Page 17: FATC - AIR 2.0 workshop

• 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

• Example: 004_File

Page 19: FATC - AIR 2.0 workshop

• 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

• Example: 005_SQLite

Page 21: FATC - AIR 2.0 workshop

• 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

• Example: 006_DragDrop

Page 23: FATC - AIR 2.0 workshop

• 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

• Example: 007_Clipboard

Page 25: FATC - AIR 2.0 workshop

• 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

• Example: 008_NativeProcess

Page 27: FATC - AIR 2.0 workshop

• 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

• AIR is coming to Android!

+

Page 29: FATC - AIR 2.0 workshop

• Questions?