# Communicating between parent and child classes

**URL:** <https://forum.kirupa.com/t/communicating-between-parent-and-child-classes/253420>\
**Category:** Uncategorized\
**Created:** [February 29, 2008, 11:01pm UTC](https://forum.kirupa.com/t/communicating-between-parent-and-child-classes/253420 "2008-02-29T23:01:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![richwilliamsuk](https://avatars.discourse-cdn.com/v4/letter/r/858c86/32.png) [@richwilliamsuk](https://forum.kirupa.com/u/richwilliamsuk)\
**Post date:** [February 29, 2008, 11:01pm UTC](https://forum.kirupa.com/t/communicating-between-parent-and-child-classes/253420/1 "2008-02-29T23:01:35Z")

</div>

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
