# Is it possible to use an array for times using setInterval?

**URL:** <https://forum.kirupa.com/t/is-it-possible-to-use-an-array-for-times-using-setinterval/305717>\
**Category:** flash\
**Created:** [March 2, 2010, 3:59pm UTC](https://forum.kirupa.com/t/is-it-possible-to-use-an-array-for-times-using-setinterval/305717 "2010-03-02T15:59:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![freefallingup](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@freefallingup](https://forum.kirupa.com/u/freefallingup)\
**Post date:** [March 2, 2010, 3:59pm UTC](https://forum.kirupa.com/t/is-it-possible-to-use-an-array-for-times-using-setinterval/305717/1 "2010-03-02T15:59:24Z")

</div>

moveSlide();  
myShowInt = setInterval(moveSlide, PLACE A TIME INSERTED FROM AN ARRAY HERE???);

I am trying to make a slideshow from an xml document. Each image has a time attribute, which I have in an array. What I want to do is advance to the next image based on the time associated with it. Any suggestions would be appreciated, I’m pretty new to this 🙂
