Textarea.password - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

TextArea.password

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
textAreaInstance.password
Description
Property; a Boolean value indicating whether the text area is a password field (
(
). If
false
password
characters with asterisks. If
default value is
false
Example
The following example treats the text in the TextArea called
check box called
my_ch
You must first add an instance of the TextArea component to the Stage and name it
and also add a check box and name it
/**
Requires:
- TextArea instance on Stage (instance name: my_ta)
- CheckBox instance on Stage (instance name: my_ch)
*/
var my_ta:mx.controls.TextArea;
var my_ch:mx.controls.CheckBox;
my_ta.wordWrap = false;
my_ta.password = true;
my_ch.selected = my_ta.password;
var chListener:Object = new Object();
chListener.click = function(evt_obj:Object) {
my_ta.password = my_ch.selected;
}
my_ch.addEventListener("click", chListener);
1198
TextArea component
is
, the text area is a password text area and hides the input
true
is
password
false
.
is checked. Otherwise it treats it as ordinary text.
my_ch
, the text area is not a password text area. The
my_ta
; then add the following code to Frame 1.
) or not
true
as a password field if the
my_ta

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents