1 Reply Latest reply on Aug 25, 2007 11:53 AM by Greg Dove

    problems with removeMovieClip()

    DZ-015 Level 1
      Hey - I'm having problems removing a movie clip I created with attachMovie. the movie clip has many other movie clips inside it. But when use:


      mcStack doesn't disappear. Is there something I have to do first to make removeMovieClip work?

      BTW - mcStack is in scope from where I'm trying to use removeMovieClip... if I say mcStack._alpha = 50; it goes transparent. I just can't get it to go away! :-P

        • 1. Re: problems with removeMovieClip()
          Greg Dove Level 4
          I would tend to use

          but I don't think that would make any difference.

          what number do you get if you try


          it might be out of range for removal - are you using getNextHighestDepth() when you originally attach it - and possibly some components as well>. (I don't actually know what might happen if one of its child clips are assigned an 'out of range' depth - whether you can remove the parent clip or not.)

          If the trace gives you an extremely high number or a negative number then just try something like:

          mcStack.swapDepths(9999); //a depth where no other movieclip exists