Link to home
Start Free TrialLog in
Avatar of Jay Roy
Jay RoyFlag for United States of America

asked on

calling one function after another

hi guys

I have this code


public class PersonGrid extends VBox  
{
public var lookUp : PersonLookup = new PersonLookup() ;      

public function PersonGrid()
{

if (lookUp && lookUp.collection) {
Swiz.dispatchEvent(new ScreenEvent(ScreenEvent.PERSON_LOOKUP, Constants.DEFAULT_LOOKUP));
      }            
}


[Mediate(event="ScreenEvent.PERSON_LOOKUP_DATA_RECEIVED", properties="data")]
public function populateLookUp( data:Object ):void{
if (lookUp) {
lookUp.collection = data as ArrayCollection;
      }
}


public function setData(data:Object):void {
loadData(data);

     }
}


Currently setData(data) is called first and then populateLookUp() is called next.
My requirment is i want to check ONLY after populateLookUp() is called i want to call loadData();
Any idea how i can do that?      
     
thanks
Avatar of Jay Roy
Jay Roy
Flag of United States of America image

ASKER

can anyone help me with this requirment, i would greatly apprecite it.
thx
SOLUTION
Avatar of zzynx
zzynx
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanx 4 axxepting