import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;
[Bindable]
private var contactData:ArrayCollection;
private function getContacts():void
{
myService.getAllContacts();
myService.getAllContacts.addEventListener(ResultEvent.RESULT, resultHandler);
}
private function resultHandler(event:ResultEvent):void
{
contactData = event.result as ArrayCollection;
}