QueryEvent为自定义事件
子窗口分发事件:
var e:QueryEvent = new QueryEvent(QueryEvent.QUERY,true);
this.dispatchEvent(e);
PopUpManager.removePopUp(this);
红色部分为一定要把bubbles设置成true进行冒泡,这样在父窗口监听就可以捕获到这个事件
父窗口init()函数监听:
监听到后执行查询
QueryEvent为自定义事件
子窗口分发事件:
var e:QueryEvent = new QueryEvent(QueryEvent.QUERY,true);
this.dispatchEvent(e);
PopUpManager.removePopUp(this);
红色部分为一定要把bubbles设置成true进行冒泡,这样在父窗口监听就可以捕获到这个事件
父窗口init()函数监听:
监听到后执行查询