Social Question

manuel_alarcon's avatar

Actionscript's "set interval" not always works fine. why?

Asked by manuel_alarcon (299points) March 30th, 2010

Hi, i’ve been using this function to pause a timeline for a few seconds, in actionscript:
—————————————
stop();
hammertime = function () {
play();
clearInterval ;
};
a = setInterval(hammertime, 3000);
———————————-

And sometimes it works fine; but sometimes it dont and there is where i go smashing my head against the wall trying to find an alternate method. But what really bothers me, is that it doesnt works all the time. why is that? is there another simple (and exact) way to pause the timeline?

Observing members: 0 Composing members: 0

2 Answers

drClaw's avatar

Is there any way you can post your .fla online for download?

wenn's avatar

Thats the weirdest looking function I’ve seen in Actionscript. AS2 I’m assuming

Set Interval Function

AS2: http://www.republicofcode.com/tutorials/flash/setinterval/

AS3: http://www.republicofcode.com/tutorials/flash/as3setinterval/

Answer this question

Login

or

Join

to answer.
Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
or
Knowledge Networking @ Fluther