O'Reilly logo

Flash 8: The Missing Manual by E. A. Vander Veer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Input Text

You're familiar with input text if you've ever bought anything online: Chances are you had to type your name, address, and credit card information into input text fields created in either HTML or Flash. The input text fields you create in Flash let you gather information from your audience and then process it, either inside Flash (using ActionScript) or by sending it to a server-side program for processing.

Note

The steps you need to take to exchange, or integrate, data with other programs is so program-and computer-dependent that they can't be covered here. Instead, this section shows you how to create input text elements and access the data your audience types in. For more on how to get that data to your server, check out Flash Help and the other resources discussed in the Appendix.

You create an input text field in Flash using the Text tool, similar to the way you create static and dynamic text. Then, by setting a few options in the Property Inspector, you can let your audience type their own text. You access that text using ActionScript. The following steps show how.

Note

The InputText and InputTextArea components that Flash offers are similar in some ways to the input text element, or field, you create using the Text tool, but the components are a bit more powerful and a bit more difficult to use. Check out Chapter 12 for details on these (and other) components.

  1. Open the file input_text.fla.

    You can find all the files you need for this example—unfinished (input_text.fla) ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required