Im doing a banner rotation thing and im using tweens and setTimeout to rotate through the images. I want to add a back and a forward button so the user can flick through the images as he pleases. It all works fine apart from when the “setTimeout mode” is active and the back button is pressed… this is the active code when the back button is pressed:
// and this is the setTimeout
var Timeout2:Number = setTimeout(firstLoad, 2000);
so when i press the back button whilst inbetween the 2000ms, it loads “firstLoad” AND “secondLoad”… and ofc it should only load secondLoad. Surely clearInterval(Timeout2) should stop the laoding of “firstLoad” ? am i missing something? or is there a smoother way of doing the same trick ?
thanks in advance!