TextField._visible
759
Description
Property; The name of the variable that the text field is associated with. The type of this property
is String.
Example
The following example creates a text field called
my_txt
and associates the variable
today_date
with the text field. When you change the variable
today_date
, then the text that displays in
my_txt
updates.
this.createTextField("my_txt", 1, 10, 10, 200, 22);
my_txt.variable = "today_date";
var today_date:Date = new Date();
var date_interval:Number = setInterval(updateDate, 500);
function updateDate():Void {
today_date = new Date();
}
TextField._visible
Availability
Flash Player 6.
Usage
my_txt
._visible
:Boolean
Description
Property; a Boolean value that indicates whether the text field
my_txt
is visible. Text fields that
are not visible (
_visible
property set to
false
) are disabled.
Example
The following example creates a text field called
my_txt
. A button called
visible_btn
toggles
the visibility of
my_txt
.
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
MovieClip._visible
Summary of Contents for FLEX
Page 1: ...Flex ActionScript Language Reference ...
Page 8: ......
Page 66: ...66 Chapter 2 Creating Custom Classes with ActionScript 2 0 ...
Page 76: ......
Page 133: ...break 133 See also for for in do while while switch case continue throw try catch finally ...
Page 135: ...case 135 See also break default strict equality switch ...
Page 146: ...146 Chapter 5 ActionScript Core Language Elements See also break continue while ...
Page 808: ...808 Chapter 7 ActionScript for Flash ...
Page 810: ...810 Appendix A Deprecated Flash 4 operators ...
Page 815: ...Other keys 815 Num Lock 144 186 187 _ 189 191 192 219 220 221 222 Key Key code ...
Page 816: ...816 Appendix B Keyboard Keys and Key Code Values ...
Page 822: ...822 Index ...