Creating a Canvas container by using constraint-based layout : Canvas « Components « Flex
- Flex
- Components
- Canvas
Creating a Canvas container by using constraint-based layout

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Canvas width="150" height="150" backgroundColor="#FFFFFF">
<mx:HBox id="hBox2" left="30" right="30" y="50" height="50"
backgroundColor="#A9C0E7">
</mx:HBox>
</mx:Canvas>
</mx:Application>
Related examples in the same category