• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 10. Controlling Text

You know that Flash lets you create visually engaging text elements—such as titles, labels, and descriptions—to accompany your graphics, animation, and sound. But did you know that you can do more with text than just set the style, color, and size? Flash text can be live, meaning that your viewers can enter text in the Flash movie as it plays, as well as select and edit the text. And Flash text can be dynamic, so it can update during playback. The text that viewers can enter is called input text, and the text that you can update during playback is called dynamic text. Both input and dynamic text are part of the class called the TextField object. Input and dynamic text provide a way to receive complex information from the viewer and tailor your Flash movie by using that information. You can use input text, for example, to let your viewers enter their names and then use that information to personalize the messages that appear throughout the movie. Or you can develop online tutorials that use input text for short-answer responses and dynamic text for customized feedback.

During author time, you use the text tool and the Property Inspector to create your text fields. But you can also create text fields at run time, dynamically defining their properties (such as background color) or formatting (such as setting font size and style with the TextFormat object). This control of text fields’ content and appearance lets you animate text purely through ActionScript, making it responsive to the viewer and to different events.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint