Say you do this:

<mx:Loader  id="photo" source="image.jpg" width="200" height="150" scaleContent="true"/>

And the actual dimensions of image.jpg is 50x50.  After the loader has loaded the image and scaled it, the loader's contentWidth and contentHeight say 50, but the image has been scaled to fit in the loader and maintain the correct aspect ratio.  So, is there a property that contains the scaled width and height (150x150) or do I have to calculate it?

I want the scaled dimensions so that I can size a canvas around the image with a border and a dropshadow.

Thanks,

-Tom


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to