User Guide

TextArea.editable 1189
// 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 (true) or not
(
false). The default value is true.
Example
The following example sets the editable property to false to prevent the user from editing
the text that it loads into the TextArea instance called
my_ta.