[flexcoders] Working with images of varying proportions

2009-02-23 Thread byte.sensei
I have an app that loads several images into mx:Image tags with scaleContent=true and width=160 / height=120. The problem is not all of my images have these proportions, and for odd sized images they end up being loaded into the upper left hand corner instead of centered in the restricting

Re: [flexcoders] Working with images of varying proportions

2009-02-23 Thread Fotis Chatzinikos
For something similar i do the following, you should be able to change it to do what you want quite easily..: mx:Image id=selectedProductImageID verticalCenter=0 complete=imageLoaded() source={selectedPhoto}