Helpful Information
 
 
Category: Apache Flex
Design - stretch image

In html and css, you can stretch an image to make a bar across the web page by repeating that image. How do you do that in Flex?

I've tried setting up css, but that doesn't seem to be one of the possible options (repeating the image). I've tried making it wider (100%), but that doesn't work either.

Do you have Flex builder? If so, I should think that you would be able (in design mode) to grab the sides and stretch the image as wide as you like. But then again, I also thought you would be able to do the same thing in the MXML using the Image width attribute.

If your app is 600px wide and you want the image at the top, this should work.

<mx:Image x="0" y="0" width="600" source="yourImage.png" />

If that doesn't do it, perhaps some sample code and a more detailed description of what you're trying to do would be helpful.










privacy (GDPR)