sono riuscito a risolvere il problema usando questo script nell'immagine che si deve muovere.
il problema è che non si ferma, perchè ho caricato l'swf dentro ad un'altro swf e non mi riconosce più le coordinate... AIUTO!!!codice:onClipEvent(load){ speed = 10; //Maggiore è il valore, minore è la velocità Stage.scaleMode = "noScale"; w = Stage.width; center = 550 boundsStage = _root.bordi.getBounds(_root); } onClipEvent(enterFrame){ boundsSlide = this.getBounds(_root); xmouse = _level0._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