import mx.controls.*;
private function clickHandler(event:MouseEvent):void
{
myLabel.text = event.type + ": " + myInput.text;
Alert.show("Text Entered is:\n" + myInput.text, "Alert Box", Alert.OK);
}
label="Enter Text"
click="clickHandler(event)"/>