[Bindable] private var products:ArrayCollection; [Bindable] private var targetListDP:ArrayCollection=new ArrayCollection();
private function resultHandler(event:ResultEvent):void{ products=event.result.catalog.product; } private function targetList_dragDropHandler(event:DragEvent):void { var dgRow:Object=event.dragSource.dataForFormat("items");
<fx:Declarations> <!-- Place non-visual elements (e.g., services, value objects) here --> <s:HTTPService id="prodData" url="http://www.flexgrocer.com/product.xml" result="resultHandler(event)"/> </fx:Declarations>