Q: Flex 4.6 Center Image I am using Adobe Flex 4.6 and I have this image:
<mx:Image source="assets/logo.png" horizontalAlign="center" verticalAlign="middle"></mx:Image>

The image appears, but it does not center horizontal or vertical, how Do I center this image?
I have also tried the following:
<mx:Canvas width="100%">
        <mx:HBox horizontalCenter="0" verticalCenter="0">
            <mx:Image source="assets/logo.png" horizontalAlign="center" verticalAlign="middle"></mx:Image>
        </mx:HBox>
    </mx:Canvas>

Still nothing, my image wont center

A: This worked for me
<s:Group width="100%" height="100%">
        <s:layout>
            <s:VerticalLayout
                verticalAlign="middle"
                horizontalAlign="center"/>
        </s:layout>
        <s:BitmapImage source="@Embed(source='assets/logo.png')" />

    </s:Group>


A: Use the horizontalCenter and VerticalCenter properties in the image tag as below         
<mx:Image source="assets/logo.png" horizontalCenter="0" verticalCenter="0"></mx:Image>

It is working fine for me.
