hi All,
i am trying to do an action after the completion of retrieving data
thru cairngorm, 

when i just put the code to test the action after retrieving the data
from a cairngorm event, it takes time and the command after that just
executes before the data is retrieved.

here is a sample code. the if command executes before the data is
retrieved. any help will be great.

private function initApp():void{
        var myRetrieveComparisonEvent : RetrieveComparisonEvent = new
RetrieveComparisonEvent();
                                
CairngormEventDispatcher.getInstance().dispatchEvent(
myRetrieveComparisonEvent );
                                
                                
        Alert.show("testing","testing");
        if (model.comparisons.length == 0){
                noComparisions.visible = true;
                noComparisions.includeInLayout = true;
        }
}

Reply via email to