# Need some help with a drag and drop game!

**URL:** <https://forum.kirupa.com/t/need-some-help-with-a-drag-and-drop-game/194580>\
**Category:** flash\
**Created:** [July 24, 2006, 6:39pm UTC](https://forum.kirupa.com/t/need-some-help-with-a-drag-and-drop-game/194580 "2006-07-24T18:39:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johnsson](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@Johnsson](https://forum.kirupa.com/u/Johnsson)\
**Post date:** [July 24, 2006, 6:39pm UTC](https://forum.kirupa.com/t/need-some-help-with-a-drag-and-drop-game/194580/1 "2006-07-24T18:39:58Z")

</div>

I just need a little help with tis code!!

```auto

_global.score = 0;
_global.maxscore = 200;
_root.correct = new Sound();
_root.correct.attachSound("correct");
MovieClip.prototype.checkMyPos = function() {
 if (eval(this._droptarget) [COLOR=blue]!== eval("_root.dt"+this.id)) {[/COLOR]
  this._x = this.xpos;
  this._y = this.ypos;
  _root.fartsound.start();
 } else {
  _root.correct.start();
  _global.score++;
  this.gotoAndStop(2);
  this.enabled = false;
[COLOR=red] this._x = dt1._x;
  this._y = dt1._y;[/COLOR]
  if (_global.score>=_global.maxscore) {
   _root.gotoAndPlay(2);
  }
 }
};
stop();

```

I need the code marked [COLOR=red]red[/COLOR] to be a variable like the code marked [COLOR=blue]blue[/COLOR][COLOR=black], but I can’t figure out how to do it right.[/COLOR]

I want it to be like “dt + this.id”

Thanks!!!😉
