hola! ho questo script che funziona correttamente senza else, quando aggiungo
else {
this._x = 270;
this._y = 316;
}

lui è come se riconoscesse solo il comando dato dall'else.
Perchè?





onClipEvent (mouseUp) {
if (dragging) {
stopDrag();
X = this._x;
Y = this._y;
for (i = 1; i <= 9; i ++) {
if (this.bersaglio.hitTest(eval("_root.nidoBase" + i))) {
this._x = _root["nidoBase" + i]._x;
this._y = _root["nidoBase" + i]._y;
} else {
this._x = 270;
this._y = 316;
}
dragging = 0;
}
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
dragging = 1;
startDrag(this);
}
}