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

Using Cache as Bitmap Matrix


Cache as Bitmap is extremely useful for display objects that are only affected by two-dimensional translation. However, it is also possible to benefit from bitmap caching when applying other changes to a display object such as scaling and rotation. This is achieved by using a transform matrix in conjunction with a cached bitmap and is known as Cache as Bitmap Matrix.

Let us work through an example.

Getting ready

An FLA has been provided as a starting point. From the book's accompanying code bundle, open chapter6\recipe5\recipe.fla into Flash Professional.

Ten instances of a Monkey movie clip are positioned on top of a Background movie clip. All ten movie clips are continuously rotated and after five seconds, the average frame rate that was achieved is displayed.

The movie clips used for this recipe are constructed from vector graphics and the FLA has been set to use GPU rendering.

How to do it...

Work through the following steps to see the performance benefit Cache...