Site statistics
Members : 19Content : 104
Content View Hits : 18409
Who's Online
We have 308 guests online| Confirmation window in flex |
|
|
|
| Articles - Flex |
| Written by Agile |
| Saturday, 11 July 2009 14:29 |
|
Every application need confirmation window to confirm the user that they really want the task to complete. In Flex , you can use Alert class to achieve the result. Alert class can also be used to show some simple message to the user. Here is the example how to ask user for confirmation and only do the action if he clicks YES. import mx.controls.Alert; private function DeleteItem(evt:MouseEvent):void { Alert.show("Do you want to delete item?","Confirm delete",Alert.YES|Alert.NO,null,deleteHandler,null,Alert.NO); } private function deleteHandler(evt:CloseEvent) { if(evt.detail== Alert.YES) { //You delete command here } } |


