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.

Reply via email to