There isn't docs yet, I don't think, so here's an example for you Flash Pro users.
Drag an Alert component onto the Stage. Then delete it. Then put this code on the main Timeline.
import mx.controls.Alert;
var listenerObj:Object = new Object();
listenerObj.click = function(evt) {
switch (evt.detail) {
case Alert.OK :
trace("you hit \"OK\".");
break;
case Alert.CANCEL :
trace("you hit \"CANCEL\".");
break;
}
};
Alert.show("ALERT! Do you want to delete the Internet?",
"Error",
Alert.OK | Alert.CANCEL,
this,
listenerObj);
Hope that helps.
Posted by jen on September 11, 2003 at 01:58 PM