Visualizzazione dei risultati da 1 a 3 su 3
  1. #1

    scorrimento sinistra (mx)

    Ciao a tutti.
    Ho messo questo codice in una clip per farla scorrere da sinistra verso destra:
    onClipEvent (load) {
    testo2.duplicateMovieClip("testod", 0);
    testod._x = testo2._x-testo2._width;
    testo2Startx = this._x;
    testo2Speed = 8;
    }
    onClipEvent (enterFrame) {
    this._x += testo2Speed;
    if (this._x>=(testo2Startx+testo2._width)) {
    this._x = testo2Startx+testo2Speed;
    }
    }
    Che modifiche devo fare per fare il contrario, cioè da destra verso sinistra?
    grazie

  2. #2
    Utente di HTML.it L'avatar di negatyve
    Registrato dal
    Feb 2001
    Messaggi
    9,479
    Beh, dipende da quello che devi fare. Si tratta solo di cambiare un po' i segni:

    codice:
    onClipEvent (load) {
    	testo2.duplicateMovieClip("testod", 0);
    	testod._x = testo2._x-testo2._width;
    	testo2Startx = this._x;
    	testo2Speed = 8;
    }
    onClipEvent (enterFrame) {
    	this._x -= testo2Speed;
    	if (this._x<=-(testo2Startx+testo2._width)) {
    		this._x = testo2Startx-testo2Speed;
    	}
    }

  3. #3
    In effetti spremendo un po' le meningi c'ero arrivata da sola
    grazie tanto!!!!

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.