Flash Lite 2.x and 3.0 ActionScript Language Reference

_width (MovieClip._width property)

public _width : Number

The width of the movie clip, in pixels.

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)