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.
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.
qualcosa del tipo
codice:var k = 1 onClipEvent (enterFrame) { this._rotation += k; } on(rollOver) { k = 0 } on(rollOut) { k = 1 }
buonuomo.tomma@tiscali.it
Intanto grazie:
Comunque da errore in
var k=1
Statement must appear within on/onClipEvent handler
var k = 1
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
Perfetto!
Grazie mille.