I'm trying to add a button to a textinput as follows

myTextInput.mxml
----------------
<mx:TextInput initialize='startUp()'/>
<mx:Script>
public btn1:Button;

private function startUp():void
{
  btn1 = new Button();
  btn1.label = "xx";
  btn1.width = 20;
  btn1.visible = true;
  addChild(btn1);
}

My problem is, btn1 isn't visible visible.

Any ideas why ? (wasn't a problem in flex 1.5)

TIA
bod





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to