Flash Player 4 as a read-only property.
my_mc._width:Number
Property; the width of the movie clip, in pixels.
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("http://www.macromedia.com/devnet/blueprint/articles/nielsen/spotlight_jnielsen.jpg", image_mc);
MovieClip._height
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/mx2004/main_7_2/00001567.html
Comments
webweber@bluewin.ch said on Aug 26, 2004 at 10:22 AM : MytyMykyk said on Jan 31, 2005 at 6:01 AM : dumbified said on Apr 2, 2005 at 2:18 PM : Keoki_SoftwareDeveloper said on May 27, 2005 at 9:54 AM : Supashy said on Jun 8, 2005 at 11:50 PM :