hey there,
i was wondering if someone could pls help me to code the setInterval/clearInterval functions in a cleaner way?
[AS]
var timer:Number;
obj = new Object();
RHArrow.onRelease = function(){
btnSlideOut();
bgSlideRight();
StagesWrap.slideTo(-952, 6, 1.5,“easeOutCirc”);
obj.interval = function() {
gotoAndPlay(2);
getURL(‘renewal.html’,’_self’);
clearInterval(timer);
}
timer = setInterval( obj, “interval”, 1500 );
}[/AS]
i need to apply this setInterval method to about eight other MC’s, except the gotoAndPlay and getURL will be different on each.
could an array help me here?
Thank you
Cam