![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
The TextField class represents any dynamic or selectable (editable) text field you create using the Text tool in Flash. You use the methods and properties of this class to control text fields at runtime. TextField 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.
To control a dynamic or input text field using ActionScript, you must assign it an instance name in the Property inspector. You can then reference the text field with the instance name, and use the methods and properties of the TextField class to control the contents or basic appearance of the text field. You can also create TextField objects at runtime, and assign them instance names, using the MovieClip.createTextField()
method. For more information, see Creating text fields at runtime.
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |