all groups > flash actionscript > december 2004 >
You're in the

flash actionscript

group:

Passing variable to a function through an interval


Passing variable to a function through an interval Jake Lyman
12/12/2004 8:36:25 PM
flash actionscript:
Hello All, I have a question about passing a variable to a function through an
interval. Whenever I try to do this, the interval no longer works. It passes
the variable immediately to the function and doesn't wait the time I set for
the interval. For instance, myInterval = setInterval(function, 6000); works
great, as we all know. Flash waits one second before executing the function.
However, when I pass a variable to the function: myInterval =
setInterval(function(var), 6000); the function fires immediately. It doesn't
wait for a second. Anyone have an answer to this? Thanks so much in advance!
Jake
Re: Passing variable to a function through an interval Rothrock
12/12/2004 8:47:17 PM
Re: Passing variable to a function through an interval Jake Lyman
12/12/2004 8:55:24 PM
Re: Passing variable to a function through an interval Rothrock
12/12/2004 9:07:22 PM
AddThis Social Bookmark Button