2 Replies Latest reply on Dec 5, 2009 5:10 PM by prodigalmaster

    if( NOT hitTest) {

    prodigalmaster Level 2

      Hi Here is my code with the red bit is what I want.

       

      if (blue.d1.hitTest(_root["red"+a])) {
                  dspeed = 0;
                  dspeed0 = 1;
              } else if (dspeed0 == 1 && NOT(!)blue.d1.hitTest(_root["red"+a])) {
                  dspeed = 5;
              }
      

       

      I want it so it is NOT hitTesting but if I just do '} else {' it ruins other badly done code from before.

       

      Is there even a way to have it say its Not hitTesting?

       

      Otherwise I will have to ask questions about my other code that is done badly.

       

      Thanks.