non ho provato, ma forse una cosa del genere
Codice PHP:var rota = 0;
function avvia_rotazione(){
if(rota < 10){
rota++;
this._rotation += 10;
} else {
this._rotation += 10;
}
}
function ferma_rotazione(){
if(rota > 0){
rota--;
} else {
delete cerchio.onEnterFrame;
}
}
puls.onRollOver = function(){
cerchio.onEnterFrame = avvia_rotazione;
}
puls.onRollOut = function(){
cerchio.onEnterFrame = ferma_rotazione;
}

Rispondi quotando