flash - setInterval(); in AS -


i have 5 different images in 5 different frames, , need animate them slider.

i build code:

function playnextframe(){         if(_root._currentframe+1 == 7) {             gotoandstop(2);         }else{             gotoandstop(_currentframe+1);         } }   var mytimer = setinterval(playnextframe, 5000); 

but when click in navigations buttons (per example)

but1.onrelease = function() {     gotoandstop(2); }; 

it goes random frames @ random times :/

if can me fade effects, of great help. ^^

when click on button need clear interval no longer fires. causes random frame jumps probably.

but1.onrelease = function() { clearinterval(mytimer) gotoandstop(2);}; 

Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -