For my project, I am attaching jpeg fles using loadMovie and
loadClip methods. If I attach a jpeg file into a movie clip ( and
movie clip's width and height attributes like 300 x 300), I can see
the full image (however the picture's width and height exceeds 300
x 300). But, if I trace the width and height, it shows 300 x
300(that is the width and height of the mc).
I want to know the width and height of the jpeg file and not
the movie clip. How do I find them? Any idea???
Use MovieClipLoader to load (i.e. the 'loadClip' method you
Assign a listener object, with an onLoadInit handler.
This gives you access to the properties after the 'load' has
occured and the new _width and _height (and other properties) have
been updated for the loaded clip. Its also the point in time where
you can change these and have the clip scaled to the right size