image is centered in the HBox container : HBox « Container « Flex
- Flex
- Container
- HBox
image is centered in the HBox container

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:HBox horizontalAlign="center" verticalAlign="middle">
<mx:Image source="logo.jpg" />
</mx:HBox>
</mx:Application>
Related examples in the same category