6 Replies Latest reply on May 31, 2010 7:00 PM by dn0myar06

    how to swap one movie clip to another??

    dn0myar06

      im making a drop and drop game and i would like to swap one movie clip to another...

       

      the first movie clip is the draggable mc, when it hits the drop zone i'm planning to put an animated version of it...

       

      as of now this is the code that i'm using....

       

      if (eval(this._droptarget) == pitsel_mc) {
      this._x = this._x;
      this._y = this._y;
      } else {
      this._x = start1x;
      this._y = start1y;

      }

       

      as you can see, after leaving the mc in the drop zone, the mc just remained on its position....

      is there a script to swap it to an animated version of the current mc??

       

      Hope you guys could help...