【发布时间】:2010-10-05 18:31:48
【问题描述】:
在事件处理程序中,我有一个Alert.show(...),它会提示用户进行确认。如何捕获警报提示的选择并在事件处理程序中使用它。例如:
private function mainEvtHandler(event:DynamicEvent):void {
var alert:Alert = Alert.show("Are you sure?", "Confirmation", Alert.YES|Alert.NO, this, alertHandler);
// How can I retrieve the selection and use it within this event handler?
// i.e. if (alert == Alert.Yes) { ...
var index:int = arrayColl.getItemIndex(event.data)
...
...
【问题讨论】:
标签: apache-flex actionscript-3