ho un problema con setInterval... non funziona con questa funzione :
che mi fa andare frame avanti e indietro sulla timeline a seconda della posizione del muose.Ora, se richiamo la funzione con un On (enterFrame )funge ma se invece la richiamo così
codice:
a=setinterval(fotoscroll,250)
Non si muove !!
Perchè??
codice:
function fotoscroll() {
this.mousex = this._xmouse;
this.mousey = this._ymouse;
this.frame = this._currentframe;
if (this.mousex<799 and this.mousex>629 and this.mousey>5 and this.mousey<100 and this.mousex<400) {
this.ferma();
}
if (this.mousex>800 and this.mousey>5 and this.mousey<100) {
this.avanti();
}
if (this.mousex<630 and this.mousey>5 and this.mousey<100) {
this.indietro();
}
}