Sep 16 2007
Why isn’t removeMovieclip isn’t working
This is one of the most annoying problems i faced, its very easy to attach movies on stage using following,
myMovie.attachMovie("movName","newName",myMovie.getNextHighestDepth());
all is fine with this and no matter how many movies i add they will be on stage but when i want to remove the movies from stage i just do this
myMovie.newName.removeMovieClip();
however this line of code won’t remove the movie if the depth is greater than 1048575, usually this could happen while using version 2 components.It is really well documented by Adobe but hey who reads documentation unless necessary. I avoided this problem by just using fixed numbers for depths and it has worked beautifully. It might look simple but when this problem hits you it can be really frustrating.