EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 694

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
694 Chapter 12: ActionScript Dictionary
TextField._name
Availability
Flash Player 6.
Usage
my_txt
._name
Description
Property; the instance name of the text field specified by my_txt.
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
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");
};

Table of Contents

Related product manuals