Button._alpha
Availability
Flash Player 6.
Usage
my_btn._alpha:Number
Description
Property; the alpha transparency value of the button specified by
transparent) to 100 (fully opaque). The default value is 100. Objects in a button with
to 0 are active, even though they are invisible.
Example
The following code sets the
user clicks the button:
// add a Button instance on the Stage
// give it an instance name of myBtn_btn
// with frame 1 selected, place the following code using the Actions panel
myBtn_btn.onRelease = function(){
this._alpha = 50;
};
See also
MovieClip._alpha,
property of a button named
_alpha
TextField._alpha
. Valid values are 0 (fully
my_btn
_alpha
to 50% when the
myBtn_btn
Button._alpha
set
135
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