There is no way for these properties to be correct until the image has been loaded. So to get the correct values, you probably need to wait for a 'complete' event from the Image.
Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of criptopus Sent: Thursday, January 21, 2010 9:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Quick Question? Strange its working now, no idea what that was, but thanks for the confirmation. --- In flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>, Tibor Ballai <ballai.t...@...> wrote: > > Hi Stephen, > > You'll find those values in the Image component's contentHeight and > contentWidth properties. > > Tibor. > > www.tiborballai.com > > criptopus wrote: > > > > I have loaded an image into a <mx:Image/> component, how do I get the > > dimentions of the source image in the file it comes from. > > > > when I try contentWidth & contentHeight I just get the current > > displayed width and hight, not the image files width and height? > > > > - Stephen > > > > >