View comments | RSS feed

_height (MovieClip._height property)

public _height : Number

The height of the movie clip, in pixels.

Availability: ActionScript 1.0; Flash Player 4

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);

The MovieClip.getNextHighestDepth() method used in this example requires Flash Player 7 or later. If your SWF file includes a version 2 component, use the version 2 components' DepthManager class instead of the MovieClip.getNextHighestDepth() method.

The MovieClipLoader class used in this example requires Flash Player 7 or later.

See also

_width (MovieClip._width property)


Flash CS3


Comments


legacy_sho said on Sep 26, 2007 at 11:33 AM :
Is this a read-only property?
djtechwriter said on Sep 27, 2007 at 9:54 AM :
No, it's not read-only. You should be able to set the value, as well.

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/9.0/main/00001927.html