Button._Visible - MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

Button._visible

Availability
Flash Player 6.
Usage
my_btn._visible:Boolean
Description
Property; a Boolean value that indicates whether the button specified by
Buttons that are not visible (
Example
Create two buttons on the Stage with the instance names
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
MovieClip._visible,
property set to
_visible
myBtn2_btn
TextField._visible
) are disabled.
false
myBtn1_btn
after the alpha is set to 0.
is visible.
my_btn
and
. Enter
myBtn2_btn
Button._visible
165

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash mx

Table of Contents