flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From CodeGirl <MichelleNicho...@yahoo.com>
Subject result Handler fires but last result does not contain the correct data in Actionscript file
Date Mon, 08 Dec 2014 16:10:11 GMT
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-last-result-does-not-contain-the-correct-data-in-Actionscript-file-tp9018.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Mime
View raw message