Hey,
I want to declare addEventListener in a class. But I want the function handler to run from another class.
Is this possible?
Say I have a class Ground.as with the code:
stage.addEventListener(Event.ENTER_FRAME, animateChar);
Then in Ball.as I have the function:
public function animateChar(event:Event):void
{ …
Ball.as and Ground.as are in the same directory.
How would I go about this?
Thanks