Book Image

Flash iOS Apps Cookbook

By : Christopher Caleb
Book Image

Flash iOS Apps Cookbook

By: Christopher Caleb

Overview of this book

The latest version of Flash Professional can directly target iOS, allowing Flash developers to write applications that will run natively on Apple's iPhone, iPad, and iPod touch. What's more, with Apple loosening its restrictions on third-party technologies, apps written in Flash can now be sold and distributed within the App Store.Flash iOS Apps Cookbook provides the recipes required to build native iOS apps using your existing knowledge of the Flash platform. Whether you want to create something new or simply convert an existing Flash project, the relevant steps and techniques will be covered, helping you achieve your goal.Learn how to configure and use Flash Professional for iOS development by writing and deploying a simple app to a device. Implement many iOS-specific features such a multi-touch, the virtual keyboard, camera support, screen orientation and the Retina display. Overcome the limitations of mobile development by mastering hardware acceleration and optimization. Whether you're an enthusiast or professional developer, the Flash iOS Apps Cookbook is your toolkit to creating high-quality content for iPhone, iPad and iPod touch.
Table of Contents (21 chapters)
Flash iOS Apps Cookbook
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
Index

Handling multitasking


Multitasking is supported in iOS 4 or above. When the user exits from an app by pressing the device's home button, the app is moved into the background rather than being fully closed. This can also occur for a variety of other reasons, such as the user accepting an incoming call or the app itself launching another application.

When the user, or some other application, launches the app again, it can simply continue where it left off rather than being completely re-loaded. This also significantly reduces the start-up time when you return to the app.

Events are dispatched when your application is moved to the background, or resumed by the operating system. This recipe will explain how to listen for and capture these events.

Getting ready

We will expand the Bubbles app, providing our document class with methods that can handle the app being moved to the background and resumed.

This recipe follows on from the work done in the Preventing screen idle recipe.

Note

The AIR 2.0 SDK...