TextField.removeTextField()
Availability
Flash Player 6.
Usage
my_txt.removeTextField() : Void
Description
Method; removes the text field specified by
text field that was created with MovieClip.createTextField(). When you call this method, the text
field is removed. This method is similar to
Example
The following example creates a text field that you can remove from the Stage when you click the
remove_btn instance. Create a button and call it
ActionScript to your FLA or AS file.
this.createTextField("my_txt", this.getNextHighestDepth(), 10, 10, 300, 22);
my_txt.text = new Date().toString();
my_txt.border = true;
remove_btn.onRelease = function() {
my_txt.removeTextField();
};
910
Chapter 2: ActionScript Language Reference
. This operation can only be performed on a
my_txt
MovieClip.removeMovieClip()
, and then add the following
remove_btn
.
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers