开发者

When using PopUpManager to instantiate an mxml component, How can I call a public function of that component to pass the component data?

Basically I am poping up the following component:

PopUpManager.centerPopUp(PopUpManager.createPopUp(this,RegionExperienceDetailPopUp,false));

I need to call RegionExperienceDetailPopUp.generateData(passIntArray);

What is the syntax to do thi开发者_如何转开发s?


PopupManager.createPopUp returns a reference to the component that you can use.

try this instead.

var uiComp : RegionExperienceDetailPopUp = PopUpManager.createPopUp(this,RegionExperienceDetailPopUp,false) as RegionExperienceDetailPopUp;
PopUpManager.centerPopUp( uiComp );
uiComp.generateData( passIntArray );
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜