Example
The following example creates a text field called
with the text field. When you change the variable
today_date
displays in
updates.
my_txt
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();
}
_visible (TextField._visible property)
public _visible : Boolean
A Boolean value that indicates whether the text field
visible (
property set to
_visible
Availability: ActionScript 1.0; Flash Player 6
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 Player 6
1222
ActionScript classes
) are disabled.
false
.
my_txt
,
and associates the variable
my_txt
today_date
is visible. Text fields that are not
my_txt
. A button called
my_txt
_visible (MovieClip._visible property)
, then the text that
visible_btn
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?