I’ve already asked a few questions about this but i’m still having problems with removing a child and having it’s hitbox remain so i’m trying to remove the event listener from the child instance from the parent class.
I tried:-
cubeToDie.removeEventListener(Event.ENTER_FRAME, cubeToDie.cubeMove);
cubeToDie.removeEventListener(Event.ENTER_FRAME, cubeToDie.cubeHit);
It ran but came up with the error: ReferenceError: Error #1069: Property cubeMove not found on CreateCube and there is no default value.
Is there a way to do this cause it’s really bugging me how i get on with the rest of the game now ;(
Cheers
Rich