Providing text entry

All iOS devices forego a physical keyboard in favor of a virtual touch-screen equivalent. AIR provides virtual keyboard support, allowing a user to enter text within an input text field.

Let us see how this is done.

Getting ready

An FLA has been provided as a starting point for this recipe.

From the book's accompanying code bundle, open chapter7\recipe3\recipe.fla into Flash Professional.

Three static text fields are already sitting on the stage and will act as labels. We will add three input text fields to the stage, associating one with each of the labels.

How to do it...

Perform the following steps to create the three input text fields:

  1. Create a new layer on the timeline by selecting Insert | Timeline | Layer.
  2. Select the Text ...

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.