Hi All,
I’ve been searching all over the net and I still can’t find the anwser. So I hope you guys here could give me a few pointers.
I am trying to get _width and _height of a dynamically created emptyMovieClip that contains a .jpg image. Here is the code:
_root.createEmptyMovieClip(“imgHolder”, 1);
_root.imgHolder.loadMovie(image);
trace("image width = " + _root.imgHolder._width );
trace("image height = " + _root.imgHolder._height );
The problem is that my traces return 0 for width and 0 for height (I’m assuming its the emptymovieclip’s dimension but it should have increased its size based on loading that jpg)
Is there anyway to dynamically retrieve the dimensions of an external image?
Thanks!
Evil