if you open Flash and hit [F1].. you can search for almost any term..
here is an example:
removeTextField (TextField.removeTextField method)
public removeTextField() : Void
Removes the text field. This operation can only be performed on a text field that was created with MovieClip.createTextField(). When you call this method, the text field is removed. This method is similar to MovieClip.removeMovieClip().
Availability: ActionScript 1.0; Flash Player 6
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 remove_btn, and then add the following ActionScript to your FLA or AS file.
PHP Code:
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();
};
take note..this only works if you placed the textField on the stage dynamically using createTextField();
if not..you might have to wrap it in a movieClip..and then remove the _parent clip.