1 Reply Latest reply on Jun 17, 2011 9:47 AM by RobotMonkey

    Background images in HBoxes and VBoxes


      I've been building a page in mxml and wanted to include a background images for the components of some of the mx:HBox and mx:VBox elements I'm using. Looking around online it seems that a property 'backgroundImage' would be what I would need to set however I keep getting errors that no such property exists. Is this something that has changed in Flex 4 or am I missing something?


      Thanks for any help.

        • 1. Re: Background images in HBoxes and VBoxes
          RobotMonkey Level 1

          To create a background for an HBox you could do something like this:


          <s:VGroup width="200" height="400" >

               <s:BorderContainer width="100%" height="100%" backgroundImage="{someEmbededImage}" >


                    <mx:HBox width="100%" height="100%" >

                         <!-- Put HBox items in here -->