开发者

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

开发者 https://www.devze.com 2023-01-21 03:55 出处:网络
Basically I am poping up the following component: PopUpManager.centerPopUp(PopUpManager.createPopUp(this,RegionExperienceDetailPopUp,false));

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

精彩评论

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

关注公众号