ANE-Alert is a native extension for displaying native alerts on iOS and Android. It supports displaying an alert popup with a title, a message and one or two buttons. It’s possible to define a callback to be invoked for each button.
The extension is based on the singleton pattern, so there is no need to instantiate an object to display the alert dialog.
Sample
// Defining your callbacks var myCallback1:Function = function():void { trace("Callback 1"); }; var myCallback2:Function = function():void { trace("Callback 2"); }; // Display a one-button alert popup AirAlert.getInstance().showAlert("My title", "My message", "OK", myCallback1); // Display a two-button alert popup AirAlert.getInstance().showAlert("My title", "My message", "YES", myCallback1, "NO", myCallback2);
RT @as3gamegears: New: ANE-Alert (native extension for displaying native alerts on iOS and Android) http://t.co/dJ84XxIV6X #as3 #flash #gam…