I call a RemoteObject method inside a loop. This method receive a row id as parameter that deletes the row in a database. Inside a loop, lots of calls could be made at once. Some of the calls could fire a FaultEvent. How do I detect the row id that fired the FaultEvent?
The remoteobject:
<mx:RemoteObject id="myTableFactory" destination="myTableFactoryFactory"/>
The loop:
myTableFactory.addEventListener(FaultEvent.FAULT, faultFunction);
for each (var myTableRow:myTable in rowsToBeExcludedArray)
{
myTableFactory.removeMyTableRow(myTableRow.id);
}
private function faultFunction(e:FaultEvent):void
{
// The main question. How to get myTableRow.id that fired the FaultEvent
}
Thanks.
Carlos Lima.