views:

11

answers:

1

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 this?

+1  A: 

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 );
Gregor Kiddie