flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: result Handler fires but last result does not contain the correct data in Actionscript file
Date Mon, 08 Dec 2014 23:03:58 GMT
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" <MichelleNicholes@yahoo.com> 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.

Mime
View raw message