Width (Movieclip._Width Property); X (Movieclip._X Property) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

_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._width + " X " + triangle._height +
" 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)
MovieClip
523

Advertisement

Table of Contents
loading

Table of Contents