Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
//...
DialogManager.addDialog("Do you want to do it?", [ {label:"YES", func:yesFunction}, {label:"NO", func:noFunction} ] );
//...
private function yesFunction():void {
trace("YES pressed");
}
private function noFunction():void {
trace("NO pressed");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment