Why does removeMovieClip() freeze when I try to remove a movieClip? The movieClip is at negative depth because it was preplaced on the stage, so I am using swapDepths to give it a new depth.
if(hole.hitTest(mov)) {
mov.swapDepths(k++);
trace(mov.getDepth()); // traces 135
mov.removeMovieClip(); //freezes movie, as if an infinite while loop is running
}
That's it! I can run the code without the mov.removeMovieClip() without error, but suddenly Flash is frowntown with the whole removeMovieClip thing. Any pro tips? I tried using a different depth changing method (_root.getNextHighestDepth()), but it's all coming down.