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.


March 8, 2008 at 1:57 pm |
[...] Original post by kumargandhi [...]
November 6, 2008 at 11:44 am |
.mxml:[18,-1] Initializer for ‘defaultButton’: values of type mx.core.IFlexDisplayObject cannot be represented in text.
didn’t work for me
November 6, 2008 at 5:52 pm |
Hi
May you r missing something,It should work. Can you paste the sample code here.
regards,
kumar.
September 12, 2009 at 12:36 pm |
Actually, the sample isn’t quite right. Curly braces are needed around the value of defaultButton as in:
September 12, 2009 at 12:37 pm |
Oops – the code was munged. Should be defaultButton=”{btn}”
September 14, 2009 at 4:21 am |
Hi,
thanks for the correction,i corrected the point.
regards,
kumar.