Copy link to clipboard
Copied
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.
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 -->
</mx:HBox>
</s:BorderContainer>
</s:VGroup>
Copy link to clipboard
Copied
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 -->
</mx:HBox>
</s:BorderContainer>
</s:VGroup>