3 Replies Latest reply on Jan 4, 2007 4:10 AM by mxc

    multiple _droptarget?

    mxc Level 1
      Hi everyone

      I am making a quiz with multiple drop targets, not where the answer is right or wrong and where one drop target matches one mc.

      So I was wondering if _droptarget can be used for multiple drop targets or is hit test the way to go?

      Thanks for your time ;)

      regards
      Michael
        • 1. Re: multiple _droptarget?
          abeall Level 3
          Nope, there is no way to get multiple _droptargets, hitTest is the way to go.
          • 2. Re: multiple _droptarget?
            mxc Level 1
            Ok thanks for your reply ;)
            • 3. Re: multiple _droptarget?
              mxc Level 1
              Assignment complete and I did end up using _droptarget... so thought I would post here for future ref :)

              Target = [thisStep.target_mc0,thisStep.target_mc1,thisStep.target_mc2,thisStep.target_mc3];

              dragSq.onPress = function() {
              this.startDrag();
              origX = this._x;
              origY = this._y;
              };
              dragSq.onRelease = function() {
              this.stopDrag();
              Drop = eval(this._droptarget);
              for (a in Target) {
              if (Drop == Target[a]) {
              this._x = Target[a]._x;
              this._y = Target[a]._y;
              Check = 1;
              return;
              }
              if (!Check) {
              this._x = origX;
              this._y = origY;
              }
              Check = 0;
              }
              };
              }