Removing child always need to be checked against if it exists.
Use .contains() :
var main:MovieClip = new MovieClip; var childMovie:MovieClip = new MovieClip main.addChild(childMovie); if (obj.contains(childMovie) main.remove(childMovie);
This will advoid the non-exists problem.

