import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;
[Bindable]
private var statesData:ArrayCollection;
[Bindable]
private var helloString:String;
private function arrayHandler(event:ResultEvent):void
{
statesData = event.result as ArrayCollection;
}
private function helloHandler(event:ResultEvent):void
{
helloString = event.result as String;
}