codigo porfavor
onClipEvent (load) {
origX = this._x;
origY = this._y;
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.startDrag();
}
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.stopDrag();
}
if (_parent.s4.hitTest(this._x, this._y, true)) {
this._x = this._parent.s4._x;
this._y = this._parent.s4._y;
} else {
this._x = origX ;
this._y = origY;
}
}
Este es otro porfa si alguien me puede ayudar gracias y explicarme en consiste cada linea de codigo:
onClipEvent (load) {
origX = this._x;
origY = this._y;
ok = false;
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.startDrag();
}
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.stopDrag();
ok = true
} else {
ok = false;
}
if (ok) {
if (_parent.s4.hitTest(this._x, this._y, true)) {
this._x = this._parent.s4._x;
this._y = this._parent.s4._y;
} else {
this._x = origX;
this._y = origY;
}
}
}