# How to change the setInterval interval whilst the movie is running?

**URL:** <https://forum.kirupa.com/t/how-to-change-the-setinterval-interval-whilst-the-movie-is-running/232842>\
**Category:** flash\
**Created:** [July 18, 2007, 8:41am UTC](https://forum.kirupa.com/t/how-to-change-the-setinterval-interval-whilst-the-movie-is-running/232842 "2007-07-18T08:41:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![theMonitor](https://avatars.discourse-cdn.com/v4/letter/t/ecb155/32.png) [@theMonitor](https://forum.kirupa.com/u/theMonitor)\
**Post date:** [July 18, 2007, 8:41am UTC](https://forum.kirupa.com/t/how-to-change-the-setinterval-interval-whilst-the-movie-is-running/232842/1 "2007-07-18T08:41:57Z")

</div>

Could anyone please tell me how I can change the number of milliseconds at which a setInterval function repeats, whilst the movie is running?

I am using setInterval to call a function which duplicates a movieclip and I need the duplication to happen over decreasing amounts of time. The problem seems to be that the setInterval function only needs to be set once, so declaring it again with a new interval value isn’t an option.

Thanks in advance for anyone who knows a way round this.
