Flash Lite 2.x and 3.0 ActionScript Language Reference

_height (MovieClip._height property)

public _height : Number

The height 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("image_mc", this.getNextHighestDepth());
var image_mcl:MovieClipLoader = new MovieClipLoader();
var mclListener:Object = new Object();
mclListener.onLoadInit = function(target_mc:MovieClip) {
    trace(target_mc._name+" = "+target_mc._width+" X "+target_mc._height+" pixels");
};
image_mcl.addListener(mclListener);

image_mcl.loadClip("example.jpg", image_mc);

See also

_width (MovieClip._width property)