Determine dimensions of an image loaded dynamically
Posted on 2005-04-19
I need to load an image from an external source, (I don't *know* its dimensions). I need to find out the dimensions of the loaded image so that I can position another object relative to it.
I tried this:
The original movieclip's (_root.MyClip) content gets replaced with the image, but the movieclip's dimensions (_width and _height) do not reflect the loaded image's size. They still show the Movieclip's original size.
How do I get the height and width?