ActionScript for Flash MX: The Definitive Guide, Second Edition

ActionScript for Flash MX: The Definitive Guide, 2nd EditionBy Colin Moock
Chapter 18.  ActionScript Language Reference
Button._alpha Property Flash 6

opacity percentage: 0 is transparent; 100 is opaque read/write

theButton._alpha

Description

The floating-point _alpha property specifies the opacity (or, conversely, the transparency) of theButton as a percentage 0 is completely transparent, whereas 100 is completely opaque. All states (Up, Over, and Down) of theButton are affected.

Example

The following code makes go_btn 50% transparent.

go_btn._alpha = 50;

See Also

Button._visible, MovieClip._alpha

    Категории