1) Open the components window (Window > Components) and drag the alert box from the components menu into the library. NOT THE STAGE
2) On an actions layer/frame, type:
import mx.controls.Alert;
var myClickHandler:Function = function (evt_obj:Object) {
if (evt_obj.detail == Alert.YES) {
//Custom action
}
};
Alert.show("Message", "Title", Alert.YES | Alert.NO, this, myClickHandler, "stockIcon", Alert.YES);
3) Change "message" to the body of the alert box and "Title" to the title of your box.
Where it says //Custom action put whatever you want. For example "gotoAndStop(2);"
discuss this topic to forum

