RemoteObject Result Event
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> import mx.collections.ArrayCollection; import mx.rpc.events.ResultEvent; [Bindable] private var statesData:ArrayCollection; private function resultHandler(event:ResultEvent):void { statesData = event.result as ArrayCollection; } </mx:Script> <mx:RemoteObject id="myRemoteObject" destination="helloClass" result="resultHandler(event)"/> <mx:Button label="Get Array" click="myRemoteObject.getArray()"/> <mx:DataGrid dataProvider="{statesData}"/> </mx:Application>