Targeting a device

The iOS family consists of three devices: iPhone, iPod touch , and iPad. When developing for iOS, you must state the devices that you are specifically targeting. Your choice will dictate how your app is run by each of the three.

This recipe will take you through the necessary steps required to create an app that targets the entire family.

Getting ready

An FLA has been provided as a starting point for this recipe. Open chapter8\recipe1\recipe.fla from the book's accompanying code bundle.

Sitting on the stage is a dynamic text field with an instance name of output. We will use this text field to report which device your app is currently being run on.

For the avoidance of doubt, this recipe will not take advantage of the Retina display ...

Get Flash iOS Apps Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.