Quick question ..

I have a spark image control with scaleMode = 'letterbox'. When I load an image smaller than the actual control it centers nicely. Now what I need to know is the ACTUAL location of the image within the letterbox. In other words, if it is padded 100px on each side, I need to know the amount of padding, if any.

Anyone have any ideas?

-JD

link|flag
I am not using the spark image control (i'm guessing it is a part of the new Flex SDK Hero), but doesn't the image-control have a contentWidth/Height-property you could use to compare it to the actual width/height of your component? – Michiel Standaert 1 hour ago

Know someone who can answer? Share a link to this question via email, twitter, or facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.