import mx.controls.Alert; private function alertListener():void { myText.text = myInput.text; Alert.show("Text Copied!", "Alert Box", Alert.OK); }