14 Replies Latest reply on May 13, 2007 5:35 AM by gooberachi

    Using hit test command - what have I done wrong?

    gooberachi
      Hi,

      in my mx 2004 game, I have a movie clip "barrier" with the instance name "barrier".

      I have on it the following code:

      onClipEvent (load){

      (_root["bomb"+bombi].hittest(_root.barrier)); {
      _root["bomb"+bombi].removeMovieClip();
      _root["this"].removeMovieClip();
      }
      }

      The bomb and bombi identifies the bomb movie clip and its increments. Nothing happens when they collide. I'm new to this so it may be fairly obvious to someone else.

      Can anyone help?

      Regards,

      g