Thursday, March 19, 2009

Stretching Images in Flex

I needed to do this today and I had to search a lot before I found the right article that explained it so I decided to share it.

If you need to put an image in your application and you want it to stretch/shrink to the size of the Image component, just change the image's 'maintainAspectRatio' property to false.

You can see the article where I learned this along with an explanation here.

3 comments:

Drew said...

Thanks this saved me some time

Anonymous said...

Thanks. Exactly what I was looking for

Anonymous said...

Perfect!