Mega Code Archive

 
Categories / Flex / Container
 

Use absolute positioning to place a VBox control inside a Canvas control

<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">     <mx:Canvas width="100" height="100" backgroundColor="#999999">         <mx:VBox id="b1" width="80" height="80" x="20" y="20" backgroundColor="#FF0000">         </mx:VBox>     </mx:Canvas> </mx:Application>