// Define a listener object.
var taListener:Object = new Object();
// Define a function that is executed whenever the listener receives
// notification of a change in the TextArea component.
taListener.change = function(evt_obj:Object) {
changeCount_num++;
trace("Text has changed " + changeCount_num + " times now!");
trace("It now contains: " + evt_obj.target.text);
trace("");
};
// Register the listener object with the TextArea component instance.
my_ta.addEventListener("change", taListener);
See also
EventDispatcher.addEventListener()
TextArea.editable
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
textAreaInstance.editable
Description
Property; a Boolean value that indicates whether the component is editable (
(
). The default value is
false
Example
The following example sets the
the text that it loads into the TextArea instance called
.
true
property to
editable
to prevent the user from editing
false
.
my_ta
TextArea.editable
) or not
true
1189