Index
[]Alpha 1, viiiApolloapplication (web)applications
Index
[]
Index
[]complete event
Index
[]directoriesdomInitialize
Index
[]
Index
[]filesFlash Player
Index
[]htmlRender
Index
[]
Index
[]
Index
[]
Index
[]load( ) method
Index
[]message URL httpmessage URL message URL http
Index
[]
Index
[]
Index
[]PDF, vi
Index
[]
Index
[]stringstext files
Index
[]tag
Index
[]
Index
[]
Index
[]
Index
[]WebKitwindow.location property
Index
[]
Index
[]
| Apollo for Adobe Flex Developers Pocket Guide | By Mike Chambers, Rob Dixon, Jeff Swartz | ............................................... | Publisher: O'Reilly | Pub Date: March 31, 2007 | Print ISBN-10: 0-596-51391-7 | Print ISBN-13: 978-0-59-651391-7 | Pages: |
|
|
Written by members of the Apollo product team, this is the officialguide to the Alpha release of Adobe's Apollo project, therevolutionary cross platform desktop runtime from Adobe Labs. Adobe Apollo Pocket Guide for Flex explains how to buildand deploy Flash-based Rich Internet Applications (RIAs) to thedesktop using Adobe's Flex framework. This book describes conciselyhow Apollo works, and offers numerous examples for those who wantto start building RIAs for the desktop right away.Why put RIAs on the desktop? They're already supposed to offer theresponsiveness of desktop programs. Unfortunately, web browserscan't support all of the interactions we expect from applications.You can't drag a file into an RIA and have it act on that file, forexample, or have RIAs interact with other applications on thecomputer.Adobe's Apollo project gives you the best of both worlds -- the RIAdevelopment model and true desktop functionality. This pocket guideexplains how.Topics include: The types of applications Apollo targets: Steps for creating your first application Using the File I/O API Using HTML within Flex-based Apollo Applications Apollo Mini Cookbook for common tasks Apollo Packages and Classes, and Command-Line Tools
Once you understand the basics of building a Flex-based Apolloapplication, this pocket guide makes an ideal reference fortackling specific problems. |
Appendix A. Apollo Packages and Classes
lists the new ActionScript packages and classes that are part of the Apollo Alpha 1 release.
Table A-1. Apollo ActionScript classes
Package | Classes |
---|
flash.display | flash.display.NativeWindow flash.display.NativeWindowDisplayState flash.display.NativeWindowIcon flash.display.NativeWindowInitOptions flash.display.NativeWindowResize flash.display.NativeWindowSystemChrome |
flash.events | flash.events.FileListEvent flash.events.InvokeEvent flash.eventsHTMLUncaughtJavaScriptExceptionEvent flash.events.NativeWindowBoundsEvent flash.events.NativeWindowDisplayStateEvent flash.events.NativeWindowErrorEvent |
flash.filesystem | flash.filesystem.File flash.filesystem.FileMode flash.filesystem.FileStream |
flash.html | flash.html.HTMLControl flash.html.JavaScriptFunction flash.html.script.JavaScriptObject |
flash.system | flash.system.Shell flash.system.NativeWindowCapabilities flash.system.Updater |
lists the Flex Apollo component classes.
Table A-2. Flex Apollo component classes
Package | Classes |
---|
mx.core | mx.core.ApolloApplication |
mx.controls | mx.controls.FileSystemComboBox mx.controls.FileSystemDataGrid mx.controls.FileSystemEnumerationMode mx.controls.FileSystemHistoryButton mx.controls.FileSystemList mx.controls.FileSystemSizeDisplayMode mx.controls.FileSystemTree mx.controls.HTML |
A few core ActionScript classes have been altered to support Apollo. lists the classes that have changed and the new methods or properties that they offer.
Table A-3. Changes to existing classes for Apollo
Class | New Property or Method |
---|
flash.display.Stage | window property |
flash.events.Event | DOM_INITIALIZE constant HTML_BOUNDS_CHANGE constant HTML_RENDER constant LOCATION_CHANGE constant NETWORK_CHANGE constant |
flash.system.Security | APPLICATION constant |
flash.utils.ByteArray | deflate( ) method inflate( ) method |
flash.net.URLRequest | followRedirects manageCookies shouldAuthenticate shouldCacheResponse useCache |
B.1. AMXMLC
AMXMLC is a simple wrapper for the MXMLC Flex compiler, which links in the appropriate Apollo-specific libraries.
Usage is the same as MXMLC:
amxmlc myTestApp.mxml
This shell script is included in the bin directory of the Apollo SDK directory.
The first argument passed to the compiler is the location of the MXML file to compile (myTestApp.mxml in the previous example).
There are a number of other options for the MXMLC compiler. For details on these, see:
http://livedocs.macromedia.com/flex/201/html/compilers_123_24.html
B.2. ADL
ADL is a command-line tool that launches an Apollo application, based on it's application.xml file, without requiring that the application be installed. This is useful for testing and debugging the application.
Typically, you want to call the ADL tool passing one parameter: the path to the application descriptor file (the application .xml file):
adl application.xml
The full syntax of the ADL command is:
adl ( -runtime )? ? ( -- ... )?
Here is a description of the command-line arguments for ADL:
Option | Description |
---|
-runtime | Optional argument that specifies the directory that contains the Apollo runtime that should be used. |
path-app-xml | The application.xml descriptor file for the application that should be launched. |
path-to-root-dir | Optional argument that specifies the directory that contains the application.xml descriptor file |
-- | Any arguments specified after this argument will be passed to the application as startup/command-line arguments. |