codice:
onClipEvent (mouseDown) {
if(this.hitTest(_root._xmouse, _root._ymouse, true)){
this.premuto = true;
}
}
onClipEvent (mouseUp) {
this.premuto = false;
}
onClipEvent (enterFrame) {
if (this.premuto && this._parent.immag._y < limite_verso_il_basso) {
this._parent.immag._y += 10;
}
}
onClipEvent (mouseDown) {
if(this.hitTest(_root._xmouse, _root._ymouse, true)){
this.premuto = true;
}
}
onClipEvent (mouseUp) {
this.premuto = false;
}
onClipEvent (enterFrame) {
if (this.premuto&& this._parent.immag._y > limite_verso_l_alto) {
this._parent.immag._y -= 10;
}
}