I have an alert popup with your basic ok / cancel functionality.  The
alert calls an event handler which receives a close event as a
parameter like so:

Alert.show("You have unsaved changed. Continue?  ","My popup",
Alert.OK | Alert.CANCEL, this, cancelEventHandler);
    
private function cancelEventHandler(event:CloseEvent):void{
                        
  if(event.detail == Alert.OK){
        // do whatever you need to do here. 
  }
  else{
     // cancel
  }
        

I want to be able to pass an additional parameter to the cancel event
handler.  Is there a way to do this?  

For example if I prompt the user to save changes, I may want to pass
in an ID value.

                

Reply via email to