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

java - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -