4 Replies Latest reply on Jan 24, 2012 10:07 AM by Ned Murphy

    Unload another Movieclip

    sgtpepperss Level 1

      Hey,

       

      I made a movieclip that is supposed to unload when a character (called 'char' in the code) hit it. That works fine.
      But I also want to unload another movie at the same time. The other movieclip is called 'square' and is already on the stage. But that doesn't work.
      Do I have to put _mc behind the name, or something like that?

      Anyway, hope anyone sees what i do wrong.

       

       

       

       

      onClipEvent (enterFrame) {

         

          if (_root.char.hitTest(this))

          {

              unloadMovie(this);   

              unloadMovie(square);

          }
      }

       

       

       

       

      Thanks,
      Geert