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.

See also<br />

duplicateMovieClip function, createEmptyMovieClip<br />

(MovieClip.createEmptyMovieClip method), duplicateMovieClip<br />

(MovieClip.duplicateMovieClip method), attachMovie (MovieClip.attachMovie<br />

method), swapDepths (MovieClip.swapDepths method)<br />

_rotation (MovieClip._rotation property)<br />

public _rotation : Number<br />

Specifies the rotation of the movie clip, in degrees, from its original orientation. Values from 0<br />

to 180 represent clockwise rotation; values from 0 to -180 represent counterclockwise<br />

rotation. Values outside this range are added to or subtracted from 360 to obtain a value<br />

within the range. For example, the statement my_mc._rotation = 450 is the same as<br />

my_mc._rotation = 90.<br />

Example<br />

The following example creates a triangle movie clip instance dynamically. When you run<br />

the SWF file, click the movie clip to rotate it:<br />

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

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

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

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

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

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

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

this._rotation += 15;<br />

};<br />

See also<br />

_rotation (Button._rotation property), _rotation (TextField._rotation<br />

property)<br />

setMask (MovieClip.setMask method)<br />

public setMask(mc:Object) : Void<br />

Makes the movie clip in the parameter mc a mask that reveals the calling movie clip.<br />

MovieClip 465

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

Saved successfully!

Ooh no, something went wrong!