I would like the loop to create the multiple setInterval’s based off the array, but the function called is not clearing the setInterval…
Anyone?
var timecode = new Array(1, 2, 3, 4);
// use the array to assign the interval
for (var i = 0; i<timecode.length; i++) {
timer* = setInterval(myCuePoint, ((timecode*)1000), i);
trace(timecode);
}
// The function called from the setInterval
function myCuePoint(i) {
clearInterval(timer*);
trace(“test”+i)
}