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?
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?
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 );