Hiiii:hugegrin:
Can someone please tell me what’s wrong with this actionscript:
_global.score = 0;
_global.maxscore = 10;
_root.correct = new Sound();
_root.correct.attachSound("correct");
MovieClip.prototype.checkMyPos = function() {
if (eval(this._droptarget) !== eval("_root.dt"+this.id)) {
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 = dt._x;
this._y = dt._y;[/COLOR]
if (_global.score>=_global.maxscore) {
_root.gotoAndPlay(2);
}
}
};
stop();
I know the problem is in the red area.
(I want the pieces to jump in place once they’re dropt close to the target)
Thanx!!!:bounce: