<mx:TitleWindowxmlns:mx="http://www.adobe.com/2006/mxml" borderColor="#0000ff" backgroundAlpha="0.6" title="Title Window" x="168" y="86"> <mx:Script> <![CDATA[ import mx.managers.PopUpManager; import mx.controls.Text; // A reference to the TextInput control in which to putthe result. publicvar loginName:Text; publicvar loggedIn:Boolean; // Event handler for the OK button. privatefunction returnName():void { loginName.text="Name entered: " + userName.text; PopUpManager.removePopUp(this); } privatefunction checkUserNameAndPass():void { /* Do some processing */ } /* have this handle the event when the server has logged in */ privatefunction returnValueFromLogin(event:Event):void { if(loggedIn) { PopUpManager.removePopUp(this); }e else { successText.text = "User/Pass not recognized"; } }