How do you center a control in an MXML panel?
- by George Edison
Here is what I have:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="#ffffff">
<mx:VBox percentHeight="100" percentWidth="100" >
<mx:Image source="@Embed('img.png')" percentHeight="100" percentWidth="100" />
</mx:VBox>
</mx:Application>
How can I center the mx:Image in the mx:Application?