TextField._name
Availability
Flash Player 6.
Usage
.
my_txt
_name
Description
Property; the instance name of the text field specified by
TextField.onChanged
Availability
Flash Player 6.
Usage
my_txt.onChanged = function(){
// your statements here
}
Parameters
None.
Returns
The instance name of the text field.
Description
Event handler; invoked when the content of a text field changes. By default, it is undefined; you
can define it in a script.
A reference to the text field instance is passed as a parameter to the
capture this data by putting a parameter in the event handler method. For example, the following
code uses
as the parameter that is passed to the
txt
then used in a
trace()
myTextField.onChanged = function (txt) {
trace (txt._name + " changed");
};
694
Chapter 12: ActionScript Dictionary
statement to send the instance name of the text field to the Output panel.
.
my_txt
onChanged
event handler. The parameter is
onChanged
handler. You can
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?
Questions and answers