Visualizzazione dei risultati da 1 a 5 su 5

Discussione: stop rotazione

  1. #1

    stop rotazione

    Ho un mc che faccio ruotare tramite questo script:

    onClipEvent (enterFrame) {
    this._rotation += 1;
    }
    Come faccio a fermare la rotazione quando passo sopra con il mouse?
    Grazie.

  2. #2
    Utente di HTML.it
    Registrato dal
    Feb 2005
    Messaggi
    306
    qualcosa del tipo
    codice:
    var k = 1
    onClipEvent (enterFrame) { 
    this._rotation += k; 
    } 
    on(rollOver) {
    k = 0
    }
    on(rollOut) {
    k = 1
    }
    buonuomo.tomma@tiscali.it

  3. #3
    Intanto grazie:
    Comunque da errore in
    var k=1

    Statement must appear within on/onClipEvent handler
    var k = 1

  4. #4
    Utente di HTML.it
    Registrato dal
    Feb 2005
    Messaggi
    306
    scusa hai ragione, me ne dimentico sempre...
    va messo così:
    onClipEvent(load) {
    var k = 1
    }
    onClipEvent (enterFrame) {
    this._rotation += k;
    }
    on(rollOver) {
    k = 0
    }
    on(rollOut) {
    k = 1
    }
    buonuomo.tomma@tiscali.it

  5. #5
    Perfetto!
    Grazie mille.

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.