# setInterval?

**URL:** <https://forum.kirupa.com/t/setinterval/88585>\
**Category:** flash\
**Created:** [April 30, 2005, 6:37pm UTC](https://forum.kirupa.com/t/setinterval/88585 "2005-04-30T18:37:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![veraxoxo](https://avatars.discourse-cdn.com/v4/letter/v/f19dbf/32.png) [@veraxoxo](https://forum.kirupa.com/u/veraxoxo)\
**Post date:** [April 30, 2005, 6:37pm UTC](https://forum.kirupa.com/t/setinterval/88585/1 "2005-04-30T18:37:11Z")

</div>

Hi,

How can I call setInterval on a function with an argument that gets incremented by 1 each time it gets called?

I tried putting the call to setInterval in a for loop, but the loop gets called all together. I also tried doing:

setInterval(function(i++), 3000);

with i starting at 1, but this doesn’t work either.

Any suggestions on how to get around this challenge?
