Book description
Thoroughly vetted by Adobe's AIR development team, Adobe AIR 1.5 Cookbook addresses fundamentals, best practices, and topics that web developers and application designers inquire about most. The hands-on recipes in this cookbook help you solve a variety of tasks and scenarios you may encounter using Adobe AIR to build Rich Internet Applications for the desktop. It's an ideal way to learn the nuances of Adobe AIR, with practical solutions you can use right away, and detailed explanations of why and how they work. These recipes will help you:
- Build an AIR application with Flex, Flash, or HTML and Ajax
- Create a database and connect it to your application
- Put together native menus for PCs and Macs
- Work with the Service Monitor Framework
- Utilize the Adobe AIR Update Framework
- Create branded desktop experiences with custom chrome and custom application icons
- Distribute your AIR application with the Seamless Install Badge
And more. Adobe AIR 1.5 Cookbook includes dozens of recipes from rising stars in the AIR development community-David Tucker, Rich Tretola, Marco Casario, and Koen De Weggheleire-along with the best solutions posted by visitors to the Adobe AIR Cookbook community website hosted by Adobe and O'Reilly (www.adobe.com/go/air_cookbook). If you're ready to expand your skill set with Adobe AIR, this is the book you've been waiting for.
Publisher resources
Table of contents
- A Note Regarding Supplemental Files
- Foreword
- Credits
-
Preface
- AIR 1.5
- Bonus Chapter Online: Developing Mashup AIR Applications
- Who This Book Is For
- Who This Book Is Not For
- How This Book Is Organized
- Conventions Used in This Book
- This Book’s Example Files
- Using the Code Examples
- How to Use This Book
- The Adobe AIR Cookbook Cook-Off
- O’Reilly Cookbooks
- Safari® Books Online
- How to Contact Us
- Acknowledgments
-
1. 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
-
2. 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
-
3. 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
- 4. Screens
-
5. 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
- 6. PDF Support
- 7. Clipboard Support
-
8. 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
-
9. 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
- 9.1. Migrating Serialization Changes in ActionScript
-
10. 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
- 11. Encrypted Local Store
-
12. 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
- 13. Taskbar and Dock Integration
- 14. File Types
- 15. Service Monitor Framework
- 16. Application Updates
- 17. AIR Application Distribution with the Browser API
- Index
- About the Authors
- Colophon
- Copyright
Product information
- Title: Adobe AIR 1.5 Cookbook
- Author(s):
- Release date: November 2008
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596522506
You might also like
book
Adobe AIR Programming Unleashed
Covers version 1.5 of Adobe AIR Written to help you hit the ground running, this book …
book
ADOBE® FLEX® BUILDER™ 3: USING ADOBE FLEX BUILDER 3
Adobe® Flex® Builder™ is an integrated development environment (IDE) for developing applications that use the Adobe® …
book
Developing Flex 4 Components: Using ActionScript 3.0 and MXML to Extend Flex and AIR Applications
The Complete Insider’s Guide to Building State-of-the-Art Components with Adobe’s Flex 4 Platform Using Adobe’s Flex …
book
Flash Builder @ Work: Building AIR Applications
Understand the architecture of the AIR framework, the merits of AIR applications vs. Flex applications, and …