Book Image

Flash Development for Android Cookbook

By : Joseph Labrecque
Book Image

Flash Development for Android Cookbook

By: Joseph Labrecque

Overview of this book

Flash has now arrived to Android — the fastest growing smartphone platform. This offers massive opportunities for Flash developers who want to get into mobile development. At the same time, working on smartphones will introduce new challenges and issues that Flash developers may not be familiar with. The Flash Development for Android Cookbook enables Flash developers to branch out into Android mobile applications through a set of essential, easily demonstrable recipes. It takes you through the entire development workflow: from setting up a local development environment, to developing and testing your application, to compiling for distribution to the ever-growing Android Market. The Flash Development for Android Cookbook starts off with recipes that cover development environment configuration as well as mobile project creation and conversion. It then moves on to exciting topics such as the use of touch and gestures, responding to device movement in 3D space, working with multimedia, and handling application layout. Essential tasks such as tapping into native processes and manipulating the file system are also covered. We then move on to some cool advanced stuff such as Android-specific device permissions, application debugging and optimization techniques, and the packaging and distribution options available on the mobile Android platform. In a nutshell, this cookbook enables you to get quickly up to speed with mobile Android development using the Flash Platform in ways that are meaningful and immediately applicable to the rapidly growing area of mobile application development.
Table of Contents (18 chapters)
Flash Development for Android Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface

Scaling visual elements based on stage resize in Flash Professional CS5.5


One of the features introduced in Flash Professional CS5.5 that makes targeting various device resolutions easier is the ability for Flash to resize and reposition visual elements upon Stage resize. This allows us to modify our FLA files targeting specific resolutions and devices quite easily.

How to do it…

We will demonstrate how to employ Scale content with stage in order to target different screen resolutions:

  1. 1. Here we see a demo application laid out at 480x800, targeting a Nexus S device. In the Properties panel, click upon the wrench icon next to the Size controls:

  2. 2. We want to adjust the display resolution to match that of a Droid2 so we change the Document Settings to reflect a 480x854 display resolution to match this device. Additionally, we can select Scale content with stage, which will scale our visual elements proportionately:

  3. 3. Upon hitting the OK button, we can see that the Stage has resized and our visual...