Kod jest taki :
Kod: Zaznacz cały
on (press) {
startDrag(this);
x = this._x;
y = this._y;
}
on (release) {
stopDrag();
hit = 0;
for (var obj in _root) {
with (_root[obj]) {
if (_name.length>1 && _name.substr(0, 1) == "_" && _name.substr(1, 1) == "_") {
if (this.hitTest(_root[obj])) {
hit = 1;
this._x = _x;
this._y = _y;
break;
}
}
}
}
if (hit == 0) {
this._x = x;
this._y = y;
}
}
Poniżej znajduje się przykładowy test, jeśli ktoś orientuje się jaki jest problem to proszę o pomoc.
http://members.lycos.co.uk/superbrysiek/test1.rar
To właśnie ten plik. Z góry dziękuję za pomoc.