Textarea.length - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Example
The following example makes the TextArea called
an HTML text area and then
my_ta
formats the text with HTML tags.
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.setSize(320, 240);
my_ta.html = true;
my_ta.text = "The <b>Royal</b> Nonesuch";

TextArea.length

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
textAreaInstance.length
Description
Property (read-only); indicates the number of characters in a text area. This property returns
the same value as the ActionScript
property, but is faster. A character such as
text.length
tab (
) counts as one character. The default value is 0.
"\t"
Example
The following example accesses the length property to display the number of characters that
the user types in the TextArea called
.
my_ta
TextArea.length
1193

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents