Alpha (Movieclip._Alpha Property) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

Methods inherited from class Object
addProperty (Object.addProperty
(Object.hasOwnProperty
(Object.isPropertyEnumerable
method),
registerClass (Object.registerClass
(Object.toString
(Object.valueOf
method),

_alpha (MovieClip._alpha property)

public _alpha : Number
The alpha transparency value of the movie clip. Valid values are 0 (fully transparent) to 100
(fully opaque). The default value is 100. Objects in a movie clip with
active, even though they are invisible. For example, you can still click a button in a movie clip
whose
property is set to 0. To disable the button completely, you can set the movie
_alpha
clip's
property to false.
_visible
You can extend the methods and event handlers of the MovieClip class by creating a subclass.
Availability: ActionScript 1.0; Flash Player 4
Example
The following code sets the
to 50% when the mouse rolls over the movie clip. Add the following ActionScript
triangle
to your FLA or AS file:
this.createEmptyMovieClip("triangle", this.getNextHighestDepth());
triangle.beginFill(0x0000FF, 100);
triangle.moveTo(10, 10);
triangle.lineTo(10, 100);
triangle.lineTo(100, 10);
triangle.lineTo(10, 10);
triangle.onRollOver = function() {
this._alpha = 50;
};
triangle.onRollOut = function() {
this._alpha = 100;
};
The
MovieClip.getNextHighestDepth()
7 or later. If your SWF file includes a version 2 component, use the version 2 components
DepthManager class instead of the
826
ActionScript classes
method),
method),
isPropertyEnumerable
method),
method),
unwatch (Object.unwatch
watch (Object.watch method)
property of a dynamically created movie clip named
_alpha
MovieClip.getNextHighestDepth()
hasOwnProperty
isPrototypeOf (Object.isPrototypeOf
method),
method),
method used in this example requires Flash Player
toString
valueOf
set to 0 are
_alpha
method.

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF