ciao a tutti
tutto ok per ora, ma mi serve un controllo che fermi lo spostamento _y se clip._y raggiunge una certa posizionecodice:onClipEvent (enterFrame) { var initialY = 0; var bottomX = -188.3; var upperX = -88.5; var currentY = this._y; var speed = 10; var mouseY = _root.menu._ymouse; if (this.hitTest(_root._xmouse, _root._ymouse, true)) { } else if (!this.hitTest(_root._xmouse, _root._ymouse, true)) { if (currentY>=initialX) { this._y = currentY-(currentY/speed); } } }
ho provato con
onClipEvent (enterFrame) {
var initialY = 0;
var bottomX = -188.3;
var upperX = -88.5;
var currentY = this._y;
var speed = 10;
var mouseY = _root.menu._ymouse;
if (this._y >= -185 && this._y <= -85){
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
} else if (!this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (currentY>=initialX) {
this._y = currentY-(currentY/speed);
}
}
}
}
ma non sembra funzionare..
insomma, help.Se volete il fla lo uppo volentieri

Rispondi quotando