how can I convert a source.result from AMFPHP into ArrayCollection? the function I'm trying without success is the following:
public function l开发者_Go百科istrecordsmail(source:ResultEvent,arrayDefinitionsargs:Array):void {
//listamailsend.dataProvider = source.result;
var array:Array = ArrayUtil.toArray(source.result);
SearchLoadlistOneDP = new ArrayCollection(array);
SearchLoadlistOneDP.refresh();
}
Thanks to everyone now
This works
SearchLoadlistOneDP = source.result as ArrayCollection;
Thanks all.
精彩评论