That would be because the method you are looking for is "nextFrame" -- the capitzalization makes a difference.
I also assume the ,= is just some kind of hinky thing with the forums, because there shouldn't be a comma between pauseAnim and the equal sign.
On a few points of refinement. You should declare your pauseAnim variable with a
Also since you are only using the pause once and then clearing it I would recomment using setTimeout() instead.
Could you explain a little further here ???
Sorry if i am not clear the "F" fixed the issue thanks
could you explain what you meant with an example??
setInterval generally means, "Do this repeatidly at the delay I specify." Which, if after the first time you call it you do a clearInterval means it only gets called once. setTimeout means, "Just do this thing once and that is it. So you won't need to clearInterval.
You can do the same thing with the returned value, like this:
And then if you need to stop that timeout before it goes you can
But it will only go one time and after that you don't need to clear it. Does that make sense?