Meridian
July 22nd, 2003, 11:52 PM
Hi there...
I'm using a timer on a keyframe to auto refresh mcs every 10 secs. This is working correctly but when I click on a button from a dynamically loaded mc I want it to stop the function from running.
function movieDelay() {
choice = Math.round(Math.random()*2);
switch (choice) {
case 0 :
feature.loadMovie("movies/featured1.swf");
break;
case 1 :
feature.loadMovie("movies/featured2.swf");
break;
case 2 :
feature.loadMovie("movies/featured3.swf");
break;
}
}
setInterval(movieDelay, 10000);
I've tried variations of
delete _root.setinterval(movieDelay,10000)
_root.setinterval(movieDelay, 10000)
nothing seems to be stopping this monster..
I'm using a timer on a keyframe to auto refresh mcs every 10 secs. This is working correctly but when I click on a button from a dynamically loaded mc I want it to stop the function from running.
function movieDelay() {
choice = Math.round(Math.random()*2);
switch (choice) {
case 0 :
feature.loadMovie("movies/featured1.swf");
break;
case 1 :
feature.loadMovie("movies/featured2.swf");
break;
case 2 :
feature.loadMovie("movies/featured3.swf");
break;
}
}
setInterval(movieDelay, 10000);
I've tried variations of
delete _root.setinterval(movieDelay,10000)
_root.setinterval(movieDelay, 10000)
nothing seems to be stopping this monster..