hi all
I am setting value of textinput to button' label at run time,   here i
want that button should increase its width according to label.
but not increasing width of button when i'm typing more text.

 private var btn1:Button = new Button();
 private function init():void{
 hb.addChild(btn1);
}

 <mx:HBox id='hb' >
        <mx:TextInput id="txt" change="btn1.label=txt.text" />
 </mx:HBox>

thanks

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to