MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 1201

Components language reference
Table of Contents

Advertisement

Description
Read-only property; indicates the maximum value of
value is 0.
Example
The following example accesses the
of the TextArea called
user scrolls up and down.
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;
var taListener:Object = new Object();
taListener.scroll = function(evt_obj:Object) {
trace("vPosition = " + my_ta.vPosition);
}
my_ta.addEventListener("scroll", taListener);
// 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;
my_ta.vPosition = my_ta.maxVPosition;
} else {
my_ta.text = "Error loading text.";
}
};
my_lv.load("http://www.helpexamples.com/flash/lorem.txt");
See also
TextArea.hPosition
maxVPosition
to the bottom. It also traces the current vertical position as the
my_ta
TextArea.vPosition
property to set the initial vertical position
TextArea.maxVPosition
. The default
;
my_ta
1197

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents