How do I get the width and height of an image?

I'm constructing a book of sorts in Actionscript 3 (FlexBuilder) and am trying to size an image dynamically according to the dimensions of it's source file. But, I've found that if I don't explicitly state the width and height of an image, they trace as 0.

So that I can scale down an image to fit within a given space, how do I get the width and height of a source image?

Answers


Do these help?


A flash.display.Loader has width and height attributes.


Need Your Help

where can i find httpd.conf or apache2.conf file or ./configure file so that i can do proxy setting in apache-tomcat-7.0.62?

java apache tomcat ubuntu proxy

I have downloaded and and unpack apache-tomcat-7.0.62.tar.gz. Every thing is working correctly but now i want some proxy setting for url (so that i remove port number from url and make some special