i don’t know if you can assign it the name t.interval…thats like creating a variable called my.Sound or something, probably isnt very good. Try the following:
[AS]
//===============================
//PAUSE FUNCTION
//===============================
function pause(t, v)
{
tInterval = setInterval(unPause, v, t);
t.stop();
}
function unPause(t)
{
trace(“clear & play”);
clearInterval(tInterval);
t.play();
}
//===============================
// INITIATE FUNCTION
//===============================
pause(this,3000);
I just need to shut the function totally off. I’ve even tried unloading the movie, but the output window shows that it’s still running the interval function.
you dont clear the function name, you clear whatever you assigned the value of setInterval to. So it would be
[AS]
_root.someMovie.anotherMovie.clearInterval(tInterval);
[/AS]
Not exactly sure how to do that with the clearInterval. I have a trace set up in my setInterval function, and it displays everytime the function runs. Is that what you mean?
Otherwise, I’m not sure how to run the trace for the “clearInterval”.
yeah (but you are missing a parenthesis there ) I dunno if that will work because I don’t know whether clearInterval returns a boolean value. You might just want to check the path.
Wow… I learned something new. I never knew you good check paths like that.
Well… the output window is showing “undefined”, so I guess it’s not picking up the path… which sucks.
I mean… that’s a direct path… it should work, what else can we do?
If there is a movie called “orange” that is loaded into a blank mc called “movieLoader”… You should just be able to talk to the “orange” movie by calling “movieLoader”, right?
This totally sucks then… cause the path should be right. I can’t think of anything else right now. I think I need to step away and go get a drink real fast… I’ll be back to stare at this thing some more.
that should give you the same path that you put in if it’s correct. If not then it will return undefined I think.
The other thing to try is in the onClipEvent(load) of the subMovieLoader put… trace(targetPath(this)); and that will give you the path to that movie clip.