So, you want the image to stretch out of aspect ratio to fill the box?
In your test code, the image now fills in the whole HBOX.
Thanks sir, you are great.
Nice of you to answer.
one more thing.
Is it possible to write on this picture and still see the whole picture behind the text? I still dont want to use backgroundImage with HBox.
Thanks in advance.
Yes, but you don't want to put the text in the HBox with the image, because then they will both be objects in there.
Place something like this after your HBox, and it will appear to float above it. You can then place it absolutely, or by wrapping the whole thing (HBox plus this Text element) in another container to control placement.
<HBox> .... your HBox image stuff here .... </HBox> <mx:Text text="Hey there, I'm awesome!"/>