Visible (Button._Visible Property); Width (Button._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

When you click each button, the file name of the SWF containing the buttons displays in the
Output panel.

_visible (Button._visible property)

public _visible :
A Boolean value that indicates whether the button specified by
are not visible (
_visible
Availability: ActionScript 1.0; Flash Lite 2.0
Example
Create two buttons on the Stage with the instance names
Enter the following ActionScript in Frame 1 of the Timeline:
myBtn1_btn.onRelease = function() {
this._visible = false;
trace("clicked "+this._name);
};
myBtn2_btn.onRelease = function() {
this._alpha = 0;
trace("clicked "+this._name);
};
Notice how you can still click
See also
_visible (MovieClip._visible property)
property)

_width (Button._width property)

public _width :
Number
The width of the button, in pixels.
Availability: ActionScript 1.0; Flash Lite 2.0
Example
The following example increases the width property of a button called
the width in the Output panel. Enter the following ActionScript in Frame 1 of the Timeline:
my_btn.onRelease = function() {
trace(this._width);
this._width ~= 1.1;
};
Boolean
property set to
false
myBtn2_btn
my_btn
) are disabled.
myBtn1_btn
after the alpha is set to 0.
,
_visible (TextField._visible
is visible. Buttons that
and
.
myBtn2_btn
, and displays
my_btn
Button
293

Advertisement

Table of Contents
loading

Table of Contents