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

Chapter 15. Introducing Complex Interact... > Creating Scriptable Text Objects

Creating Scriptable Text Objects

In Chapter 2, you learned to create editable text blocks. But in the published movie, that text is just a graphic element, not an object that ActionScript can interact with. Only text within text boxes whose type is Input or Dynamic can be manipulated with scripts.

To enable ActionScript to recognize the text box and manipulate its properties, you must give the text box an instance name. Although text boxes have different properties than movie clips, the procedures for naming and targeting a text box instance are just like those you learned for targeting movie clip instances earlier in this chapter. You can also give a dynamic or input text box a variable name and use ActionScript to target the variable, thereby manipulating the contents of the text box.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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