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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

_width (MovieClip._width property)<br />

public _width : Number<br />

The width of the movie clip, in pixels.<br />

Example<br />

The following code example displays the height <strong>and</strong> width of a movie clip in the Output<br />

panel:<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 />

trace(triangle._name + " = " + triangle._width + " X " + triangle._height +<br />

" pixels");<br />

See also<br />

_height (MovieClip._height property)<br />

_x (MovieClip._x property)<br />

public _x : Number<br />

An integer that sets the x coordinate of a movie clip relative to the local coordinates of the<br />

parent movie clip. If a movie clip is in the main Timeline, its coordinate system refers to the<br />

upper-left corner of the Stage as (0, 0). If the move clip is inside another movie clip that has<br />

transformations, the movie clip is in the local coordinate system of the enclosing movie clip.<br />

Thus, for a movie clip rotated 90° counterclockwise, the movie clip's children inherit a<br />

coordinate system that is rotated 90° counterclockwise. The movie clip's coordinates refer to<br />

the registration point position.<br />

See also<br />

_xscale (MovieClip._xscale property), _y (MovieClip._y property), _yscale<br />

(MovieClip._yscale property)<br />

_xmouse (MovieClip._xmouse property)<br />

public _xmouse : Number [read-only]<br />

Returns the x coordinate of the mouse position.<br />

476 ActionScript classes

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

Saved successfully!

Ooh no, something went wrong!