Hi,
I’ve got three classes. Break - Animation - Broadcaster.
Break extends Animation extends Broadcaster.
So what I want to do now is to start a tween in the Animation Class. When the tween is done, I dispatch an event called “endTween”, and have the Break class listening to it in order to call a function in that class.
Stupidly enough it only works if I call the addEventListener() method from the Animation class. But as soon as I try that from the Break class (where I actually want to add the EventListener) it doesn’t work anymore.
Has anybody an idea how I could solve this problem?