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?


Do these help?

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

Need Your Help

Rails optional gem config

ruby-on-rails rubygems

What do you do when you want to use a gem for development/testing that you don't want to force other devs to use? Right now I have