Visible (Textfield._Visible Property); Width (Textfield._Width Property) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

_visible (TextField._visible property)

public _visible :
A Boolean value that indicates whether the text field
visible (
property set to
_visible
Availability: ActionScript 1.0; Flash Lite 2.0
Example
The following example creates a text field called
toggles the visibility of
this.createTextField("my_txt", 1, 10, 10, 200, 22);
my_txt.background = true;
my_txt.backgroundColor = 0xDFDFDF;
my_txt.border = true;
my_txt.type = "input";
visible_btn.onRelease = function() {
my_txt._visible = !my_txt._visible;
};
See also
_visible (Button._visible property)

_width (TextField._width property)

public _width :
Number
The width of the text field, in pixels.
Availability: ActionScript 1.0; Flash Lite 2.0
Example
The following example creates two text fields that you can use to change the width and height
of a third text field on the Stage. Add the following ActionScript to a FLA or ActionScript file.
this.createTextField("my_txt", this.getNextHighestDepth(), 10, 40, 160,
120);
my_txt.background = true;
my_txt.backgroundColor = 0xFF0000;
my_txt.border = true;
my_txt.multiline = true;
my_txt.type = "input";
my_txt.wordWrap = true;
690
ActionScript classes
Boolean
) are disabled.
false
.
my_txt
is visible. Text fields that are not
my_txt
. A button called
my_txt
,
_visible (MovieClip._visible property)
visible_btn

Advertisement

Table of Contents
loading

Table of Contents