Skip to main content
Known Participant
February 11, 2008
Question

RemoveMovieClip?

  • February 11, 2008
  • 1 reply
  • 287 views
I have this mc that I created with
_root.attachMovie("boom", "blow"+boomNum, boomNum);
then later on I have.

delBoomF();
delBoomi = setInterval(delBoomF, 150);
function delBoomF() {
_root.blow301.removeMovieClip;
}

Problem is that I cannot get it to remove that movie clip instance and I know I have the right target.
Any ideas as to what Im doing wrong?
This topic has been closed for replies.

1 reply

February 11, 2008
syntax?
Known Participant
February 11, 2008
I just forgot to use the attatch code.
February 11, 2008
What I mean is that removeMovieClip needs () after it. As in _root.blow301.removeMovieClip();

I don't want to confuse you here but just FYI, if the mc depth is too high, you cannot remove it. In this case, it looks like the depth is 301 which is fine. But if you have components in your movie and you use _root.getNextHighestDepth() to attach your mc instances, they goo too high to be removed. In order to remove those mc instances, you first have to use swapDepths() to get them to a depth you can work with.