![]() ![]() | |
Flash Player 6.
my_txt.onChanged =function(){ // your statements here }
None.
The instance name of the text field.
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 onChanged handler. You can capture this data by putting a parameter in the event handler method. For example, the following code uses txt as the parameter that is passed to the onChanged event handler. The parameter is then used in a trace() statement to send the instance name of the text field to the Output panel.
myTextField.onChanged = function (txt) {
trace (txt._name + " changed");
};
![]() ![]() | |