arraycollection

ArrayCollection.setItemAt is doing some funny things

I am trying to swap two items in an ArrayCollection with this code. private function swapCollectionElements(collection:ArrayCollection, fromIndex:uint, toIndex:uint) : void { var curItem:Object = collection.getItemAt(fromIndex); var swapItem:Object = collection.getItemAt(toIndex); collection.setItemAt(curItem, toIndex); ...

Flex Upload XML to datagrid/database

Hi We have an requirement in our project to browse & upload an XML file and show it on the datagrid, edit the grid and then save the contents to the database. I'm able to see examples that take a XML from a specific folder and show on the datagrid, but not able to see any examples that browse for a XML and then upload it. It would be gr...