I have a movieclip where I have lots of code, because its kind of a module. Inside it have have some AS2 code inside a movieclip called "mymodule"
However, when I go to another "section" in my Flash, I need to make sure all intervals are cleared, because a user could easily click on another section while something is running and it needs to clear them.Code:var myinterval; some_movieclip.onRelease = function(){ clearInterval(myinterval); myinterval = setInterval(myfunction, 200); };
But I cant figure out how to kill intervals I have set.
The following doesn't work of course
And this dont work eitherCode:mymodule.clearInterval(myinterval);
Any ideas?Code:clearInterval(mymodule["myinterval"]);Thanks in advance




Thanks in advance
Reply With Quote
