_alpha
Top  Previous  Next


SWiSH Player Support
SWF4 or later - Supported Internally

Syntax
instanceName._alpha
instanceName._alpha = value

Arguments
Can be set to a number between 0 and 100.

Returns
Current setting.

Description
The property both reads and sets a Sprite's or Object's alpha transparency.
A value of 0 is transparent.
A value of 100 is opaque.

Elements with an alpha of 0 (i.e. invisible) can still detect Events.

Sample
onLoad() {
    _root.rectangle._alpha = 40;   // make rectangle partly transparent
}


Physics Properties are also supported for this property.