4,328
社区成员
发帖
与我相关
我的任务
分享
import mx.controls.Alert;
import mx.events.CloseEvent;
private var _num:uint = 0;
private function alert():void{
if(_num < 10){
var strInfo:String = _num.toString() + " 测试?";
Alert.show(strInfo, "提示信息", Alert.YES | Alert.NO, null,
function(e:CloseEvent):void{
if(e.detail==Alert.YES){
times();
}
}
);
}
}
private function times():void{
Alert.show(_num.toString() + " 确定", "", Alert.OK, null,
function(e:CloseEvent):void{
_num ++;
alert();
}
);
}