| |
| |
Foreword | |
| |
| |
Credits | |
| |
| |
Preface | |
| |
| |
| |
AIR Basics | |
| |
| |
| |
Creating and Running an AIR Application with Flex Builder 3 | |
| |
| |
| |
Creating and Running an AIR Application with Flash | |
| |
| |
| |
Creating and Running an AIR Application with HTML and JavaScript | |
| |
| |
| |
Debugging an AIR Application with JavaScript | |
| |
| |
| |
Signing and Exporting an AIR Application | |
| |
| |
| |
Signing an AIR File with a Trusted Certificate | |
| |
| |
| |
Understanding Synchronous and Asynchronous Programming in AIR | |
| |
| |
| |
Application Settings | |
| |
| |
| |
Targeting a Specific Version of AIR | |
| |
| |
| |
Setting the Application ID | |
| |
| |
| |
Setting the Application Name and Filename | |
| |
| |
| |
Setting the Application Version | |
| |
| |
| |
Editing the Application Description and Copyright Information | |
| |
| |
| |
Editing the Initial Window Settings | |
| |
| |
| |
Setting the Installation Folder for an Application | |
| |
| |
| |
Setting the Default Program Menu Folder | |
| |
| |
| |
Setting a Custom Application Icon | |
| |
| |
| |
Allowing an AIR Application to Interact with the Browser | |
| |
| |
| |
Setting the Application to Handle All Updates | |
| |
| |
| |
Determining the Application Version at Runtime | |
| |
| |
| |
Creating Multilingual AIR Installations | |
| |
| |
| |
Application Windows | |
| |
| |
| |
Changing the Main Application Window | |
| |
| |
| |
Launching a New Window in ActionScript | |
| |
| |
| |
Launching a New Window (Flex) | |
| |
| |
| |
Launching a New Window (JavaScript) | |
| |
| |
| |
Creating Utility Windows | |
| |
| |
| |
Creating Lightweight Windows | |
| |
| |
| |
Creating a Full-Screen Window | |
| |
| |
| |
Managing Multiple Windows | |
| |
| |
| |
Creating Windows with Custom Chrome | |
| |
| |
| |
Minimizing and Maximizing a Window | |
| |
| |
| |
Resizing a Window | |
| |
| |
| |
Closing a Window | |
| |
| |
| |
Displaying a Prompt Before Closing a Window | |
| |
| |
| |
Closing All Open Windows at Once | |
| |
| |
| |
Adding a Drop Shadow to a Custom Chrome Window in ActionScript | |
| |
| |
| |
Applying a Pixel Bender Filter to a Custom Chrome Window in ActionScript | |
| |
| |
| |
Screens | |
| |
| |
| |
Positioning Windows on the Desktop | |
| |
| |
| |
Positioning Windows Across Multiple Monitors | |
| |
| |
| |
Determining the Monitors on Which an Application Is Currently Displayed | |
| |
| |
| |
HTML Content | |
| |
| |
| |
Displaying HTML Content | |
| |
| |
| |
Accessing JavaScript from ActionScript in an HTML Container | |
| |
| |
| |
Accessing ActionScript from JavaScript in an HTML Container | |
| |
| |
| |
Scripting the DOM from ActionScript | |
| |
| |
| |
Accessing and Editing an HTML Style Sheet from ActionScript | |
| |
| |
| |
Accessing the HTML Container History List | |
| |
| |
| |
Bridging Content from Different Security Sandboxes | |
| |
| |
| |
Creating JavaScript Functions from ActionScript | |
| |
| |
| |
Scrolling HTML Content in ActionScript | |
| |
| |
| |
Using ActionScript Libraries Within an HTML Page | |
| |
| |
| |
PDF Support | |
| |
| |
| |
Detecting Whether PDF Support Is Available | |
| |
| |
| |
Loading a PDF Document | |
| |
| |
| |
Communicating from AIR to PDF | |
| |
| |
| |
Communicating from PDF to AIR | |
| |
| |
| |
Clipboard Support | |
| |
| |
| |
Working with the Clipboard Data Types | |
| |
| |
| |
Adding Data to the Operating System Clipboard | |
| |
| |
| |
Retrieving Data from the Operating System Clipboard | |
| |
| |
| |
Clearing Data from a Clipboard | |
| |
| |
| |
Using Deferred Rendering with Clipboard Data | |
| |
| |
| |
Creating Custom Clipboard Data Formats | |
| |
| |
| |
Drag and Drop Support | |
| |
| |
| |
Dragging Data Out of an Application in ActionScript | |
| |
| |
| |
Dragging Data Out of an Application in JavaScript | |
| |
| |
| |
Dragging Data Into an Application in ActionScript | |
| |
| |
| |
Dragging Data Into an Application in JavaScript | |
| |
| |
| |
Dragging and Dropping Within an Application in ActionScript | |
| |
| |
| |
Dragging and Dropping Within an Application in JavaScript | |
| |
| |
| |
File System Integration | |
| |
| |
| |
Accessing Directory Aliases in the File Class | |
| |
| |
| |
Creating a New File or Directory | |
| |
| |
| |
Deleting a File or Directory | |
| |
| |
| |
Copying a File or Directory | |
| |
| |
| |
Moving a File or Directory | |
| |
| |
| |
Moving a File or Directory to the Trash | |
| |
| |
| |
Prompting the User to Select a File or Directory | |
| |
| |
| |
Reading Data from a File | |
| |
| |
| |
Writing Data to a File | |
| |
| |
| |
Creating a Temporary File or Directory | |
| |
| |
| |
Caching Images to Disk in ActionScript | |
| |
| |
| |
Searching for Files of a Given Extension in a Directory in ActionScript | |
| |
| |
| |
Migrating Serialization Changes in ActionScript | |
| |
| |
| |
Embedded SQL Database Programming | |
| |
| |
| |
Creating a Database | |
| |
| |
| |
Connecting to a Database in Synchronous Mode | |
| |
| |
| |
Connecting to a Database in Asynchronous Mode | |
| |
| |
| |
Creating an In-Memory Database | |
| |
| |
| |
Creating an Encrypted Database | |
| |
| |
| |
Encrypting a Database with a Password | |
| |
| |
| |
Creating Tables in a Database | |
| |
| |
| |
Querying a Database Synchronously | |
| |
| |
| |
Querying a Database Asynchronously | |
| |
| |
| |
Retrieving Results from a Query | |
| |
| |
| |
Using Parameters in Queries | |
| |
| |
| |
Including a Database in an Application | |
| |
| |
| |
Persisting Application Settings | |
| |
| |
| |
Encrypted Local Store | |
| |
| |
| |
Storing Data in the Encrypted Local Store | |
| |
| |
| |
Retrieving Data from the Encrypted Local Store | |
| |
| |
| |
Removing and Resetting Data in the Encrypted Local Store | |
| |
| |
| |
Storing Application-Specific Data in the Encrypted Local Store | |
| |
| |
| |
Safeguarding Files with Encrypted Local Store | |
| |
| |
| |
Application and Window Native Menus | |
| |
| |
| |
Creating a Native Menu | |
| |
| |
| |
Responding to Menu Events | |
| |
| |
| |
Adding a Menu Separator | |
| |
| |
| |
Creating Nested Menus | |
| |
| |
| |
Creating a Native Window Menu (Windows) | |
| |
| |
| |
Creating a Native Window Menu (Mac) | |
| |
| |
| |
Creating a Context Menu (ActionScript) | |
| |
| |
| |
Creating a Context Menu (JavaScript) | |
| |
| |
| |
Assigning Keyboard Shortcuts to Menu Items | |
| |
| |
| |
Enabling and Disabling Menu Items | |
| |
| |
| |
Toggling Menu Items | |
| |
| |
| |
Taskbar and Dock Integration | |
| |
| |
| |
Adding an Icon to the System Tray (Windows) | |
| |
| |
| |
Adding a Custom Menu to the System Tray Icon (Windows) | |
| |
| |
| |
Adding a Custom Menu to the Dock Icon (Mac) | |
| |
| |
| |
Changing the System Tray or Dock Icon | |
| |
| |
| |
Notifying the User Through the Dock (Mac) | |
| |
| |
| |
Notifying the User Through the Taskbar (Windows) | |
| |
| |
| |
File Types | |
| |
| |
| |
Registering Custom File Types | |
| |
| |
| |
Determining Whether an Application Is the Default Application for a File Type | |
| |
| |
| |
Setting and Removing an Application as the Default Application for a File Type | |
| |
| |
| |
Getting the Path of the Default Application for a File Type | |
| |
| |
| |
Service Monitor Framework | |
| |
| |
| |
Including the Service Monitor Framework in an Application (JavaScript) | |
| |
| |
| |
Including the Service Monitor Framework in an Application (Flash) | |
| |
| |
| |
Monitoring the Connection to a URL | |
| |
| |
| |
Reading Only the Head of a URL | |
| |
| |
| |
Monitoring the Connection to a Specific Port on a Server | |
| |
| |
| |
Application Updates | |
| |
| |
| |
Creating Applications with Update Capabilities | |
| |
| |
| |
Creating Custom Update Interfaces for Applications with Update Capabilities | |
| |
| |
| |
AIR Application Distribution with the Browser API | |
| |
| |
| |
Including the Browser API | |
| |
| |
| |
Detecting the Installed Version of AIR | |
| |
| |
| |
Launching an AIR Application from the Browser | |
| |
| |
| |
Installing an AIR Application from the Browser | |
| |
| |
| |
Using the Included Seamless Install Badge | |
| |
| |
Index | |