Jay Roy
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.PE RSON_LOOKU P, Constants.DEFAULT_LOOKUP)) ;
}
}
[Mediate(event="ScreenEven t.PERSON_L OOKUP_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
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.PE
}
}
[Mediate(event="ScreenEven
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
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Thanx 4 axxepting
ASKER
thx