6 Replies Latest reply on Jun 17, 2007 6:15 PM by kglad

    hitTest problem

    TAGDigital

      I have 2 objects in the flash library Bomb_1 and Mine_1;

      in the linkage properties for Bomb_1 is
      Class: game.Bomb_1
      Base class: flash.display.MovieClip;
      Linkage: export for ActionScript and export in first frame is checked.

      in the linkage properties for Mine_1 is
      Class: game.Mine_1
      Base class: flash.display.MovieClip;
      Linkage: export for ActionScript and export in first frame is checked.

      I created classes game.Bomb_1 and game.Mine_1 and put them in the correct folders.

      I am going to define properties later as soon as I get the main hit test part working.


      anyway when I run it I get an error...

      1061:Call to a possibly undefined method hitTest through a reference with static type game:Bomb_1.

      I would really rather have the hit test defined in the Mine_1 and Bomb_1 classes but couldn't figure out how to do it so I put it in the main loop

      Could someone please explain why I am getting this error? Shouldn't this work since both Bomb_1 and Mine_1 are extending MovieClip???

      Thanks