Ciao smanettoni,
ho un problema, dovrei aumentare il centro di uno sroll in modo che in EX. 10 px non si muova ne a destra ne a sinistra...
vi lascio lo script.. ciao e grazie!!!![]()
codice:onClipEvent(load){ speed = 10; //Maggiore è il valore, minore è la velocità Stage.scaleMode = "noScale"; w = Stage.width; center = 365; boundsStage = _root.bordi.getBounds(_root); } onClipEvent(enterFrame){ boundsSlide = this.getBounds(_root); xmouse = _root._xmouse; move = -(xmouse-center)/speed; if ((boundsSlide.xMax < boundsStage.xMax) && (xmouse > (w/2))){ move = 0; } else if ((boundsSlide.xMin > boundsStage.xMin) && (xmouse < (w/2))) { move = 0; } this._x += move; }

Rispondi quotando