How can I get the size of the image

By using the code below I am loading an external image. Loads very well.
However whenever I'm not aware of how to point directly to the image that is loaded into the MC.
How am I to the image that is loaded in order to get the width and height of the reference image.

you want to use the onLoadInit() function to be able to interact with the loaded image.

myListener.onLoadInit = {function (mc:MovieClip)}
trace ("Dynamic MC width = ' + mc._width");
trace ("Dynamic MC height =" + mc._height);
}

See the liveDocs for onLoadComplete here: http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Liv eDocs_Parts & file = 00002001.html

Tags: Adobe Animate

Similar Questions

Maybe you are looking for