How to show confirmation message in ActionScript 3?

How can I show a confirmation message in ActionScript 3?

I am using Adobe Flex 3 and as3 for an Air application

+4
source share
2 answers
Alert.show("Are you sure?", "Title", mx.controls.Alert.YES | mx.controls.Alert.NO, this, alertEventHandler); 

Then create an alertEventHandler with the following code:

 function alertEventHandler(event:CloseEvent):void { if(event.detail == Alert.YES) { // pressed yes. } } 

Or view the custom Dialog class: http://fatal-exception.co.uk/blog/?p=69

+5
source

You can use the Alert class for this.

 Alert.show(...); 
0
source

Source: https://habr.com/ru/post/1303339/


All Articles