资 源 简 介
AlertUtil 直接提供了在项目中较常见的
showOKMsg(msgNode:String = "", closeHandler:Function = null, parameters:Array = null, parent:Sprite = null, title:String = ""):Alert
showYesNoMsg(msgNode:String = "", closeHandler:Function = null, parameters:Array = null, parent:Sprite = null, defaultButtonFlag:uint = 0x0002, title:String = ""):Alert
showYesCancelMsg(msgNode:String, closeHandler:Function = null, parameters:Array = null, parent:Sprite = null, defaultButtonFlag:uint = 0x0008, title:String = ""):Alert
showYesNoCancelMsg(msgNode:String, closeHandler:Function = null, parameters:Array = null, parent:Sprite = null, defaultButtonFlag:uint = 0x0008, title:String = ""):Alert
的function,从而取代 mx.control.Alert 相对较简单的方法。
AlertUtil 由 AlertUtil.as 和 MessageType.Module.Action 化的 message.xml 组合而成。
example.xml