Sponsered Links
Categories
Sponsered Links

Flex Box Class and VBox class and HBox class

 

The Box class is the base class for the VBox and HBox classes:

• The VBox container renders all child display objects vertically.
• The HBox container renders all child display objects horizontally.

The Application object behaves like a VBox by default (vertical layout), but you can also set it to use absolute or horizontal layout.

VBox and HBox flow like HTML, only in one direction.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
backgroundColor="#FFFFFF" backgroundAlpha="0">
<mx:VBox>
<mx:Button label="&lt; prev" left="10" top="120" />
<mx:Image source="assets/animals03.jpg" horizontalCenter="0"
top="30"/>
<mx:Label text="Photographed by Elsie Weil"
horizontalCenter="0" top="250"/>
<mx:Button label="next &gt;" right="10" top="120"/>
</mx:VBox>
</mx:Application>

 
 
Sponsered Links
Latest Updates
 
All Content of this site is for learning only. We do not warrant the correctness of its content. The risk from using it lies entirely with the user. While using this site, you agree to have read and accepted our terms of use and privacy policy.
Copyright © 2009 JSPSERVLETTUTORIAL.INFO All Right Reserved