HDividedBox layout container
HDividedBox Layout Container is similar to HBox Layout Container. The difference is, it adds a divider between its child components which can be used to resize the area of container for the child components using mouse pointer. Hold the divider with left button of the mouse and move it, you will see the resized areas of the containers associated with the divider.
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" horizontalAlign="center" verticalAlign="middle" width="560" height="258"> <mx:HDividedBox width="500" height="200"> <mx:VBox backgroundColor="#BAE2F9" width="100%" height="100%"> <mx:Text text="Flex is the an open source framework developed by Adobe for creating rich internet applications."/> </mx:VBox> <mx:VBox backgroundColor="#E6D4F6" width="100%" height="100%"> <mx:Text text="Flex based applications provide real time rich experience to the user which is not possible in traditional html based applications."/> </mx:VBox> <mx:VBox backgroundColor="#BAE2F9" width="100%" height="100%"> <mx:Text text="Currently, Flex is most popular choice because of its cross browser and cross platform features."/> </mx:VBox> <mx:VBox backgroundColor="#E6D4F6" width="100%" height="100%"> <mx:Text text="It runs consistently among all major browsers having flash player installed in it."/> </mx:VBox> </mx:HDividedBox> </mx:Application>
|
Output:
Watch in action: