defaultButton property in HBox control of Flex.

March 8, 2008

I found out one property that was actually hidden in the Control of HBox, i had a requirement and when i searched for that i found that hidden one.

And its really very use full in using that property and the functionality of defaultButton is know i think[ One reading this post] .

code example:

<mx:HBox defaultButton=”{btn}” >
<mx:Button id=”btn” label=”One”/>
<mx:Button id=”btnbtn” label=”Two”/>
<mx:Button id=”btnbtn” label=”Three”/>
</mx:HBox>

This property will also be defined in the other Alingment Tags.Enjoy the code.