6 Replies Latest reply on Nov 15, 2010 9:33 PM by kglad

    Swap Dephts in flash player 10

    gaminflash Level 1

      Hey, i have a problem in Flash. I have made a script that works in Flash player 6 but when i switch to Flash player 10 it suddenly doesn't work, the script is:

       

      onClipEvent (enterFrame) {
      if (this.hitTest (_root.mov)) {
      this.swapDepths (this_x + this._y+41);
      }
      }

      onClipEvent (load) {
      this.swapDepths (this_x + this._y+41);
      }

       

       

      And the mov is a movie clip with the script:

       


      onClipEvent (enterFrame) {

      // the character swap depths :
      this.swapDepths (this_x + this._y+25);


      }

       

      Anyone knows why it doesn't work in any Flash player over Flash player 6? What was the changes in the versions over that made this script go wrong?

      Btw this script works with both actionscrip 1 and 2 in flash player 6.