PDA

View Full Version : Flex How to wait until user respond and then continue process?



cpthk
March 8th, 2009, 05:35 AM
If I have code:


Alert.show('Please respond');
request.send();


In this code, flex will pop alert to screen and immediately send out the request. How do I wait until user clicks ok on the alert and then send out the request?

muhammadzubair
March 10th, 2009, 03:01 PM
try this code snipt


Alert.show("Please respond","",Alert.OK,this,OnOKPress);

...
...
function OnOKPress(evt:CloseEvent){
request.send();
}