So I'm dealing with two classes at the moment, a Laser class, (which corresponds to a movieclip) and an Enemy class. The enemy class is linked to multiple enemy movieclips. When it's created, it will look for collisions with an instantiation of the laser class. Here is where I'm having trouble. I want to work things out so that when the Enemy class is instantiated, the Laser class can be passed into it for said collision detection purposes. I can't seem to find a way to do this.
The problem is that the Laser class needs the specific instantiation of the Enemy class in which to pass itself into. And because I'm dealing with multiple Enemy classes at once, it's crucial that the Laser class can pass itself into the right one.
If none of this makes sense, just comment and I'll try to clarify some more.