AIR Flex Boot Camp
Transcript of AIR Flex Boot Camp
-
8/10/2019 AIR Flex Boot Camp
1/21
Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential. 1
Flex - AIR Boot Camp
2009Duane Nickull, James Ward
Sr. Technology Evangelists
Adobe Systems
-
8/10/2019 AIR Flex Boot Camp
2/21
Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential. 3
Agenda
An overview of AIR & Flex
Architecture
Runtime Architecture
Development environment
Whats new in AIR 2.0, Flash Builder 4 and Flex4? Coding!
Note: While AIR 2.0 almost ready, please note that 1.5 is still
recommended for production as of Oct 4, 2009. This will change soplease consider when you read this. This course will use 1.5.2.
-
8/10/2019 AIR Flex Boot Camp
3/21
Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential. 4
Whats new in AIR 2.0
A new version of WebKit is included in the latest builds comparable to
the version included in the Safari 4 beta. Includes a new JavaScript engine ("SquirrelFish Extreme").
Preliminary results show that the updated JavaScript engine is running twic e as fast
in some tests. http://www2.webkit.org/perf/sunspider-0.9/sunspider.html
Open a file with the default application
Mass storage device detection
New and enhanced networking classes (DatagramSocket,
InterfaceAddress, NetworkInterface, NetworkInfo, NetworkInterface,
ServerSocket and more)
Preliminary screen reader support for Flash-based applications
Mac vector printing support
And an upcomingbrand new AIR Boot Camp!
http://www2.webkit.org/perf/sunspider-0.9/sunspider.htmlhttp://www2.webkit.org/perf/sunspider-0.9/sunspider.htmlhttp://www2.webkit.org/perf/sunspider-0.9/sunspider.htmlhttp://www2.webkit.org/perf/sunspider-0.9/sunspider.html -
8/10/2019 AIR Flex Boot Camp
4/21
Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential. 5
-
8/10/2019 AIR Flex Boot Camp
5/21
Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential. 66
The Adobe AIR runtime lets developers use proven web
technologies to build rich Internet applications that runoutside the browser on multiple operating systems.
What is AIR?
-
8/10/2019 AIR Flex Boot Camp
6/21
Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential. 7
A quick overview of AIR
AIR runtime runs on Linux, Mac and Windows
AIR applications distributed (*.air)
Installs as native app on OS (*.exe, *.app, etc)
Custom Chrome (Chromeless too)
Rich Component Library Declarative and Scripting programming models
Can be built using text tools and free AIR SDK. FREE!
Current version 2.0
Fast adoption!
Easy to program AIR apps.
-
8/10/2019 AIR Flex Boot Camp
7/21
Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential. 8
How Flex Works on the Desktop (Adobe Integrated Runtime)
Compile & Package
SOAP HTTP/S AMF/S RTMP/S
Web Server
Desktop
AIR Client Runtime
Files SQLite Notifications ClipboardFlash Builder IDE
Flex SDK
Halo and Spark
Flex Class Libraries
MXML ActionScript
Existing Applications & Infrastructure
J2EE App Servers
Data ServicesXML/HTTP
RESTSOAP Web Services
-
8/10/2019 AIR Flex Boot Camp
8/21
Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential. 99
Applications can be built using the following technologies
Flash / Flex IDEs (ActionScript + MXML)
HTML / JavaScript / CSS / AJAX (can build with CS4) Combination of these technologies
PDF can be leveraged with any application
How AIR Applications get Composed?
Flash
HTMLActionScriptXML
Video
AudioPDF
HTML
FlashJavaScript
CSS
XML PDF
AIR Runtime/APIs
Mac, Windows, Linux
-
8/10/2019 AIR Flex Boot Camp
9/21
Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential. 101
Compiled Executable vs. Script vs. Declarative
Declaring new objects:
Typical Compiled Language:
TypeOfObject myObject = new ObjectFactory.createObject();
Typical Script Language:
var myObject:TypeOfObject = null;
Declarative Language:
All map to underlyingAPIs and Objects
-
8/10/2019 AIR Flex Boot Camp
10/21
Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential. 111
Compiled Executable vs. Script vs. Declarative
Declaring object properties:
Typical Compiled Language:
myObject.setColor(#FF44C8);
Typical Script Language:
myObject.setColor(#FF44C8);
Declarative Language:
-
8/10/2019 AIR Flex Boot Camp
11/21
Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential. 121
Compiled Executable vs. Script vs. Declarative
Handling Events:
Typical Compiled Language:try {
MyObject.registerEventHandler(MOUSE_CLICKED_HANDLER,
com.adobe.livecycle.PostEventHandler");} catch(SDKException e) {
if(e.getErrorCode() != e.E_EVENT_HANDLER_NOT_RECOGNIZED)throw(e);
}
// then write your actual event handler
Typical Script Language:
myObject.onMouseOver(CallSomeFunction());
Declarative Language:
-
8/10/2019 AIR Flex Boot Camp
12/21
Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential. 131
ActionScript
Scripting language based on ECMAScript
ActionScript class library
Layout
Effects, skins, etc. Networking and data
Object Oriented
Strongly Typed If you know Javascript, ActionScript will be easy.
-
8/10/2019 AIR Flex Boot Camp
13/21
Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential. 14
ActionScript 3
Both compile-time and runtime type checking
Improved performance from a class-based inheritance system separate
from the prototype-based inheritance system.
Support for packages, namespaces, and regular expressions.
Compiles to an entirely new type of bytecode, incompatible with AS1,
AS2.
Revised Flash Player API, organized into packages.
Unified event handling system based on the DOM event handling
standard.
Integration of ECMAScript for XML (E4X) for purposes of XML
processing.
Direct access to the Flash runtime display list for complete control of
what gets displayed at runtime.
Completely conforming implementation of the ECMAScript Fourth
Edition Draft specification.
-
8/10/2019 AIR Flex Boot Camp
14/21
Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential. 15
No moremarketing BS -
lets start
coding!!!
-
8/10/2019 AIR Flex Boot Camp
15/21
Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential. 16
Code Projects
PROJECT 1: AN ADVANCED HELLO WORLD
PROJECT 2: CHROME-LESS APPLICATIONS:
PROJECT 3: VIDEO CAPTURE
PROJECT 4: VIDEO AND FULL SCREEN (BFS)
PROJECT 5: WORKING WITH PDF
PROJECT 6: HTML
PROJECT 7: READING AND WRITING TO LOCAL DISK
PROJECT 8: WORKING WITH XML
PROJECT 9: REST
PROJECT 10: AIR 3D
PROJECT 11: SQLITE
PROJECT 12: WEB SERVICE INTROSPECTION AND CONSUMPTION
PROJECT 13: EXPORTING, SIGNING, DISTRIBUTING AND INSTALLING AIR
APPLICATION
PROJECT 14: SCRIBBLER APPLICATION
PROJECT 16: WINDOWING APIS
-
8/10/2019 AIR Flex Boot Camp
16/21
Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential. 171
Can be initiated using Inline Install
badge or by double-clicking on an
.air file
A runtime-managed installation
dialog is always presented
Nothing is actually installed until
the user walks through the entireinstallation process
Applications must be signed by
either a chained cert to an
approved CA (Verisign or
Thawte), or a self-signed cert
Self-signed applications are
(should be) treated effectively as
unsigned during the install to the
user
Installation
-
8/10/2019 AIR Flex Boot Camp
17/21
Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential. 18
File -> Export -> Release Build
-
8/10/2019 AIR Flex Boot Camp
18/21
Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential. 19
Create new Certificate
-
8/10/2019 AIR Flex Boot Camp
19/21
Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential. 20
Pick your cert and sign
-
8/10/2019 AIR Flex Boot Camp
20/21
Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential. 21
The End
Thank you!
Courses:
http://web2open.org/courses.html
Duane Blog:http://technoracle.blogspot.comhttp://www.duanesworldtv.com
James Blog:
http://www.jamesward.com/wordpress/
-
8/10/2019 AIR Flex Boot Camp
21/21