To use ActionScript to set the properties of a text field, you must assign the text field an instance name. If you create the text field on the Stage with the Text tool, you can assign the instance name in the Property inspector. If you create the text field dynamically, you can assign an instance name as a parameter of the createTextField method.
To set text field properties dynamically:
createTextField method of the MovieClip object in the Actions toolbox to add it to the Script pane in the Actions panel. See Creating text in Using Flash. For this example, enter the instance name myText as a parameter of the createTextField method.text property of the TextField object. See Creating text in Using Flash.multiline property. Object is the instance name of the text field whose property you want to set.wordWrap and border properties. The following code displays in the Script pane:mytext.multiline = true; mytext.wordWrap = true; mytext.border = true;
For a complete list of TextField object methods and detailed descriptions of each, see the TextField object entry in the online ActionScript Dictionary in the Help menu.