MovieClip
523
_width (MovieClip._width property)
public _width :
Number
The width of the movie clip, in pixels.
Availability:
ActionScript 1.0; Flash Lite 2.0 - as a read-only property.
Example
The following code example displays the height and width of a movie clip in the Output
panel:
this.createEmptyMovieClip("triangle", this.getNextHighestDepth());
triangle.beginFill(0x0000FF, 100);
triangle.moveTo(100, 100);
triangle.lineTo(100, 150);
triangle.lineTo(150, 100);
triangle.lineTo(100, 100);
trace(triangle._name + " = " + triangle. " X " + triangle._
" pixels");
See also
_height (MovieClip._height property)
_x (MovieClip._x property)
public _x :
Number
An integer that sets the
x
coordinate of a movie clip relative to the local coordinates of the
parent movie clip. If a movie clip is in the main Timeline, its coordinate system refers to the
upper-left corner of the Stage as (0, 0). If the move clip is inside another movie clip that has
transformations, the movie clip is in the local coordinate system of the enclosing movie clip.
Thus, for a movie clip rotated 90° counterclockwise, the movie clip's children inherit a
coordinate system that is rotated 90° counterclockwise. The movie clip's coordinates refer to
the registration point position.
Availability:
ActionScript 1.0; Flash Lite 2.0
See also
_xscale (MovieClip._xscale property)
,
_y (MovieClip._y property)
,
_yscale
(MovieClip._yscale property)
Summary of Contents for Flash Lite 2
Page 1: ...Flash Lite 2 x ActionScript Language Reference...
Page 22: ...22 Contents...
Page 244: ...244 ActionScript language elements...
Page 760: ...760 ActionScript classes...