rendered paste bodypackage PasteBin{
import mx.events.FlexEvent.BUTTON_DOWN ;
import mx.controls.TextArea;
import mx.controls.Button;
import mx.controls.TextInput;
public class GetControl {
private var _thisBtn:Button;
private var _thisTI:TextInput;
private var _bin:TextArea;
public function GetControl(newBtn:Button,newTI:TextInput,newBin:TextArea){
_thisBtn = newBtn;
_thisTI = newTI;
_bin = newBin;
_thisBtn.addEventListener(mx.events.FlexEvent.BUTTON_DOWN , this.clickHandler );
}
public function clickHandler(event:Event):void {
_bin.text = _thisTI.text;
}
}
}