The TextField object represents any dynamic or selectable (editable) text field you create using the Text tool in Flash. You can use thYou can use a text field as an object in your movie, and use ActionScript to control the text field in the same way you would control a movie clip or other object. Text field objects support the same properties as MovieClip objects, with the exception of the _currentframe
, _droptarget
, _framesloaded
, and _totalframes
properties. You can get and set properties and invoke methods for text fields dynamically.
The Debug > List Variables command in test mode lists text field objects. The Output window uses the following conventions in displaying text field objects:
1. variable, 2. text, 3. htmlText, 4. html, 5. textWidth, 6. textHeight, 7. maxChars, 8. borderColor, 9. backgroundColor, 10. textColor, 11. border, 12. background, 13. wordWrap,14. password, 15. multiline, 16. selectable, 17. scroll, 18. hscroll, 19. maxscroll,20. maxhscroll, 21. bottomScroll, 22. type, 23. embedFonts, 24 restrict, 25. length,26. tabIndex, 27. autoSize
The Debug > List Objects command in test mode lists text field objects. If an instance name is specified for a text field, the full target path including the instance name is displayed in the Output window in the following form:
Target =
"target path
"
For more information on the List Variables or List Objects commands, see "Using the Output window" on page 140.
To use a text field as an object:
The instance name must conform to identifier naming conventions. The first character must be a letter, underscore (_), or dollar sign ($). Each subsequent character must be a letter, number, underscore, or dollar sign.