Home Flex Container HBox Layout Container



HBox Layout Container
Posted on: November 14, 2009 at 12:00 AM
HBox layout container behaves like Box container with horizontal direction.

HBox Layout Container

     

HBox layout container behaves like Box container with horizontal direction. This container lays its children components horizontally. You can see the code below, there are four image components within HBox container. The container sets them all horizontally.

<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">

<mx:HBox width="429" height="80" x="148.5" y="30">

<mx:Image width="100" height="76">

<mx:source>assets/images/Sunset.jpg</mx:source>

</mx:Image>

<mx:Image width="100" height="76">

<mx:source>assets/images/Blue hills.jpg</mx:source>

</mx:Image>

<mx:Image width="100" height="76">

<mx:source>assets/images/Water lilies.jpg</mx:source>

</mx:Image>

<mx:Image width="100" height="76">

<mx:source>assets/images/Winter.jpg</mx:source>

</mx:Image>

</mx:HBox>

</mx:Application>

Output:

Download the source code:

HboxLayoutContainer.zip

Related Tags for HBox Layout Container:


More Tutorials from this section

Ask Questions?    Discuss: HBox Layout Container  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.