开发者

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

开发者 https://www.devze.com 2023-01-08 19:05 出处:网络
how can I convert a source.result from AMFPHP into ArrayCollection? the function I\'m trying without success is the following:

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

精彩评论

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