I think you are looking fort that :
( from my application )
dataService.fill(maxPrice, 'maxPrice');
dataService.addEventListener(ResultEvent.RESULT,
resultEventHandlerMaxPrice);
private function displayData(event:ResultEvent):void {
display.display(this.products);
}
So I have an event which is waiting for the result before do
anything