我莫名其妙Flex 3中创建一个堆栈溢出...我试图让数据从一个模态对话窗口的这样:Flex弹出窗口:堆栈溢出?
主要应用:
var myPopup:MyPopup;
function buttonClick(event:MouseEvent):void
{
myPopup = MyPopup(PopUpManager.createPopUp(this, MyPopUp, true));
myPopup.addEventListener(CloseEvent.CLOSE, handler, false, 0, true);
}
function handler():void
{
//get data
}
MyPopup:
function buttonHandler(MouseEvent:event):void
{
PopUpManager.remove(this);
this.dispatchEvent(new CloseEvent(CloseEvent.CLOSE));
}
如果这是不正确的,以允许我在对象上使用和检索数据的方式处理关闭弹出窗口的正确方法是什么?
@iftrue:你要发送一个关于堆栈溢出堆栈溢出问题。大写差异和标签中的连字符有助于区分两者。 – 2009-06-18 19:46:16
handler()函数中的代码是什么样的? – 2009-06-18 20:14:00
处理函数现在不做任何事情。 – 2009-06-19 17:16:33