It isn’t clear from this what the correct/incorrect info is, and how it was set up to be called? More detail might help.
-Alex On 12/8/14, 8:10 AM, "CodeGirl" <[email protected]> wrote: >If I have this same function in an mxml file, the last result returns the >correct info but when its in an action script file, it does not. Why? >is >there something I need to do different? > > protected function > setAResult_resultHandler(event:ResultEvent):void > { > if (event.result != null) > { > var thisDTO:ADTO = setAResult.lastResult; > if (dataList[indx].id == 0) > { > dataList[indx] = thisDTO; > var eventObject:ChangeA = new > ChangeA("aChanged", thisDTO.id, true); > var dispatch:EventDispatcher = new > EventDispatcher(); > dispatch.dispatchEvent(eventObject); > } > Alert.show(updateSuccessMessage); > } > } > > > >-- >View this message in context: >http://apache-flex-users.2333346.n4.nabble.com/result-Handler-fires-but-la >st-result-does-not-contain-the-correct-data-in-Actionscript-file-tp9018.ht >ml >Sent from the Apache Flex Users mailing list archive at Nabble.com.
