Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Senior Coder jerry62704's Avatar
    Join Date
    Oct 2007
    Springfield, IL
    Thanked 87 Times in 87 Posts

    Question 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.
    ...and gladly would he learn and gladly teach

    Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls

  2. #2
    Regular Coder byuhobbes85's Avatar
    Join Date
    Oct 2006
    Ames, Iowa, USA
    Thanked 4 Times in 4 Posts
    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.
    -- </byuhobbes>


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts