|
Goran,
There seems to be a typo in my last post… The confirm method should look like this:
private function confirm( event ) { switch ( event.detail ) { case 1: break; case2: break; } }
From: Mercer, Dustin
Goran,
This code should help.
PS. The event.detail contains the information needed to tell you which button was clicked. I.E. 1== YES and 2 == NO. Hope this helps!
Import mx.controls.Alert;
var alert = Alert.show("Are yousure you want to delete this item?", "Confirm Delete", Alert.YES | Alert.NO); alert.addEventListener( "click", mx.utils.Delegate.create( this, confirm ) );
private function confirm( event ) { switch ( event.detail ) case 1: break; case2: break; }
From: goran187
[mailto:[EMAIL PROTECTED]
|
- Re: Alert event handling Mercer, Dustin
- Re: Alert event handling goran187

