Textarea.maxhposition - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

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.
/**
Requires:
- TextArea instance on Stage (instance name: my_ta)
*/
var my_ta:mx.controls.TextArea;
my_ta.maxChars = 24;
// Define a listener object.
var taListener:Object = new Object();
taListener.change = function(evt_obj:Object) {
trace("my_ta.length is now: " + my_ta.length + " characters");
};
my_ta.addEventListener("change", taListener);

TextArea.maxHPosition

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
textAreaInstance.maxHPosition
Description
Read-only property; the maximum value of
Example
The following example accesses the
TextArea called
my_ta
maxHPosition
to the farthest right position.
TextArea.hPosition
property to set the initial position in the
. The default value is 0.
TextArea.maxHPosition
1195

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents