Mega Code Archive

 
Categories / Flex / Components
 

Copy values from one TextInput to another TextInput by reference id

<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">     <mx:TextInput id="myTextInput1" />     <mx:Button label="Copy:" click="myTextInput2.text=myTextInput1.text" />     <mx:TextInput id="myTextInput2" /> </mx:Application>