[ Team LiB ] |
Recipe 8.1 Referring to a Text Field via ActionScript8.1.1 ProblemYou want to refer to a text field via ActionScript. 8.1.2 SolutionRefer to author-time text fields by their instance names. 8.1.3 DiscussionMany of the recipes in this chapter require you to access a text field's methods or properties. Sometimes text fields are created at runtime via ActionScript, but often you'll want to adapt a recipe to work with your author-time content. ActionScript refers to author-time text fields using the text field instance name, which must be set, as follows:
8.1.4 See AlsoTo refer to a text field created at runtime, use the TextField instance returned by MovieClip.createTextField( ), as demonstrated in Recipe 8.2. For details on creating editable text fields, see Recipe 8.5. |
[ Team LiB ] |