You must first add an instance of the TextArea component to the Stage and name it my_ta;
then add the following code to Frame 1. Use only one setting for the
a time.
/**
Requires:
- TextArea instance on Stage (instance name: my_ta)
*/
var my_ta:mx.controls.TextArea;
my_ta.wordWrap = true;
// Limit control to uppercase letters, numbers, and spaces.
my_ta.restrict = "A-Z 0-9";
// Allow all characters, except lowercase letters
// characters to uppercase
my_ta.restrict = "^a-z";
TextArea.scroll
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
Usage 1:
var listenerObject:Object = new Object();
listenerObject.scroll = function(eventObject:Object) {
// ...
};
textAreaInstance.addEventListener("scroll", listenerObject);
Usage 2:
on (scroll) {
// ...
}
1200 TextArea component
property at
restrict
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers