let’s say that i have this button which is called “Click_Here” and i added an event listener to it in some class file in order for it to run the event handler in a different one ..
so it will be like this
classfile1.as
Click_Here.addEventListner(MouseEvent.CLICK , buttonClicked ) ;
classfile2.as
public function buttonClicked (e:MouseEvent){ trace ("hello");}
is that possible .. ?
Yes. Consider the class:
Now do this:
Or: