TextArea.vScrollPolicy
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
textAreaInstance.vScrollPolicy
Description
Property; determines whether the vertical scroll bar is always present (
(
), or appears automatically according to the size of the field (
"off"
value is
.
"auto"
Example
The following example turns off the vertical scroll bar for the TextArea called my_ta so that a
scroll bar is not available to scroll the text that the example loads.
You must first add an instance of the TextArea component to the Stage and name it
then add the following code to Frame 1.
/**
Requires:
- TextArea instance on Stage (instance name: my_ta)
*/
var my_ta:mx.controls.TextArea;
my_ta.setSize(320, 240);
my_ta.wordWrap = true;
my_ta.vScrollPolicy = "off";
// Load text to display and define onData handler.
var my_lv:LoadVars = new LoadVars();
my_lv.onData = function(src:String) {
if (src != undefined) {
my_ta.text = src;
} else {
my_ta.text = "Error loading text.";
}
};
my_lv.load("http://www.helpexamples.com/flash/lorem.txt");
1206
TextArea component
), is never present
"on"
). The default
"auto"
my_ta
;
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers