Flash AS3 - Dispatching Events from Parent Class to Child Class

Posted by John Russell on Stack Overflow See other posts from Stack Overflow or by John Russell
Published on 2010-04-30T20:28:45Z Indexed on 2010/04/30 21:47 UTC
Read the original article Hit count: 307

I think this is a pretty simply problem but I do not seem to be able to pull it off. Basically I have a parent class A, and a child class B. Class A instantiates class B with addChild. There is a shared object which is being updated from a java server (red5) that has an event listener attached to it in class A. I have a function in class A which will pass certain, specific updates from this shared object to class B. The problem occurs is that when class B is instantiated, the event listener from class A doesn't work anymore. I have not removed the event listener from A. Any thoughts?

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about red5