Flex调用父组件的方法(Popup)

适用于PopupManager类型

首先在子窗口中定义回调函数
[Bindable]
public var callbackFunction:Function;

然后在父窗口中定义子窗口对象的地方,写上
子窗口对象.callbackFunction=调用的父类函数;


最后在子窗口中调用
callbackFunction.call(this);

如果是其它类型,可参考parent/parentDocument

猜你喜欢

转载自dljy2013.iteye.com/blog/1947672