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
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}
2 matches
Mail list logo