All pastes #418385 Raw Edit

Stuff

public text v1 · immutable
#418385 ·published 2007-03-31 16:33 UTC
rendered paste body
package 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;
        }
	}
}