0 Replies Latest reply on May 5, 2007 1:12 PM by OmniFlash

    hitTest trouble

    OmniFlash
      So yea I used an array of movieClips and it sounds something like this:

      ------------------------------------------
      public function hitTesting(tester:MovieClip){
      if (tester.hitTest(this.obsArray[0][0][0] )) {
      }
      }
      -----------------------------------------

      And it keeps returning undefined and not TRUE or FALSE
      Keep in mind I have tested the return value

      Anyone tried using MovieClips as pointers to test using hitTest instead of using the full path????


      EDIT*******************************

      I tried this and still got undefined:
      ----------------------------------------
      trace(_root.nameGameWorld.nameWall.hitTest(_root.nameGameWorld.nameWall))
      trace(_root.nameGameWorld.nameWall._x)

      ---------------------
      I got the x but my booleen stayed at undefined

      EDIT AGAIN***********************************

      Take in note everything is in a .as class
      Maybe this could give trouble
      Anyone?

      EDIT AGAIN AGAIN***********************
      I tried using my linked movieClip like this but to no avail

      ------------------------------
      onClipEvent(load){
      this.initialize();
      trace(this.hitTest(this))
      }
      ----------------------------

      Will someone tell me if using AS classes bug it?

      EDIT AGAIN AGAIN AGAIN ****************
      It work like this:

      -------------------------
      onClipEvent (load) {
      trace(this.hitTest(this))
      }
      -----------------------

      So basicly it means the AS class link MIGHT be KILLING all other functions

      Anyone KNOW an answer?