• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Background images in HBoxes and VBoxes

New Here ,
Jun 17, 2011 Jun 17, 2011

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.

Views

503

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Jun 17, 2011 Jun 17, 2011

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>

Votes

Translate

Translate
Explorer ,
Jun 17, 2011 Jun 17, 2011

Copy link to clipboard

Copied

LATEST

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>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines