Function in class subclassing Sprite

Hi All,

I have a class which subclasses Sprite (Class1). In this class I draw something on the stage. I have another class (Class2) that creates several instances of the first class (Class1) and places them on the stage. As I am creating the instances of Class1, I am adding an event listener for the CLICK event for each instance.

When I click on any of the Class1 instances, I would like to execute a public function in Class1. However e.target is Sprite and I cannot conver it to type Class1.

How can I execute this function from Class2?

Thank you,

Daniel