_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");
No comments:
Post a Comment