03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Modifiers Signature Description<br />

Methods inherited from class Object<br />

_alpha (MovieClip._alpha property)<br />

public _alpha : Number<br />

The alpha transparency value of the movie clip. Valid values are 0 (fully transparent) to 100<br />

(fully opaque). The default value is 100. Objects in a movie clip with _alpha set to 0 are<br />

active, even though they are invisible. For example, you can still click a button in a movie clip<br />

whose _alpha property is set to 0. To disable the button completely, you can set the movie<br />

clip's _visible property to false.<br />

You can extend the methods <strong>and</strong> event h<strong>and</strong>lers of the MovieClip class by creating a subclass.<br />

Example<br />

The following code sets the _alpha property of a dynamically created movie clip named<br />

triangle to 50% when the mouse rolls over the movie clip. Add the following ActionScript<br />

to your FLA or AS file:<br />

this.createEmptyMovieClip("triangle", this.getNextHighestDepth());<br />

triangle.beginFill(0x0000FF, 100);<br />

triangle.moveTo(10, 10);<br />

triangle.lineTo(10, 100);<br />

triangle.lineTo(100, 10);<br />

triangle.lineTo(10, 10);<br />

triangle.onRollOver = function() {<br />

this._alpha = 50;<br />

};<br />

408 ActionScript classes<br />

swapDepths(target:Ob<br />

ject) : Void<br />

Swaps the stacking, or depth level (z-order), of this<br />

movie clip with the movie clip specified by the<br />

target parameter, or with the movie clip that<br />

currently occupies the depth level specified in the<br />

target parameter.<br />

unloadMovie() : Void Removes the contents of a movie clip instance.<br />

addProperty (Object.addProperty method), hasOwnProperty<br />

(Object.hasOwnProperty method), isPropertyEnumerable<br />

(Object.isPropertyEnumerable method), isPrototypeOf (Object.isPrototypeOf<br />

method), registerClass (Object.registerClass method), toString<br />

(Object.toString method), unwatch (Object.unwatch method), valueOf<br />

(Object.valueOf method), watch (Object.watch method)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!