开发者

How to convert a ResultEvent from amfphp into array collection flex?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜