flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mprabhu <Prabu.Moor...@symphonysummit.com>
Subject Re: Bubbling to a Grandparent
Date Mon, 08 Dec 2014 09:37:20 GMT
Hi,

Extend the class from EventDispatcher and dispatch the event.

public class As  extends EventDispatcher { .
.
.
.
		public function setA(ndx:int):void
		{
			this.indx = ndx;
			aDTO = new ADTO();
			aDTO.id = 502;
			aDTO.name = "Saved Item";
			dataList[indx] = aDTO;
			var thisDTO:ADTO = dataList[indx];
			var eventObject:ChangeA = new ChangeA("aChanged", thisDTO.id, true);
			/*var dispatch:EventDispatcher = new EventDispatcher();
			dispatch.dispatchEvent(eventObject);*/
			dispatchEvent(eventObject);
			//Alert.show(updateSuccessMessage);
                                             //setAResult.token =
service.storeA(aDTO);
		}
.
.
.

}




-----
Thanks & Regards,
M.Prabhu
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Bubbling-to-a-Grandparent-tp8997p9007.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Mime
View raw message