PDA

View Full Version : Local Function / setInterval?



earph
September 3rd, 2003, 05:07 PM
Why is this not working? It just passes through the function instead of pausing. Source is attached:

grandsp5
September 3rd, 2003, 05:09 PM
where is the setInterval? I don't see it

earph
September 3rd, 2003, 05:11 PM
Inside the MC's specified in the _root timeline. Look at the layers, then find that MC in the library. You'll see the functions there.

I appreciate the help.

grandsp5
September 3rd, 2003, 05:14 PM
which frame of which scene in which symbol instance? there are a lot to wade through..

earph
September 3rd, 2003, 05:17 PM
Sorry....

Main Scene >> 02-Intros Folder >> 01-introGettingStarted

It's in the first layer of the Main Scene.

grandsp5
September 3rd, 2003, 05:24 PM
pause = function () {
thisClip.play();
thisClip.clearInterval(thisClip.stall);
}

thisClip.stall = setInterval(pause(), 3000);


your code wasnt calling the function at all. This calls it. I'm not sure if its what you need though.

earph
September 3rd, 2003, 05:28 PM
Sorry.... but it's not working. I've adjusted the code to your recommendations and it's still not picking up the function.

grandsp5
September 3rd, 2003, 05:35 PM
it picks up the function but the function probably doesnt do what you want. stick a trace("function called here"); in the function to see that it works.

earph
September 3rd, 2003, 05:42 PM
Yes... I did get the trace to come up, which is proof that the function works, but it looks like the "setInterval" isn't working since it's not pausing.

Hmmmm....

grandsp5
September 3rd, 2003, 05:54 PM
not sure why. sorry. i played with but I can't get it.

earph
September 3rd, 2003, 05:56 PM
No prob... Thanks for looking.