# Auto-update every 15 seconds

**URL:** <https://forum.kirupa.com/t/auto-update-every-15-seconds/282280>\
**Category:** flash\
**Created:** [February 19, 2009, 7:32pm UTC](https://forum.kirupa.com/t/auto-update-every-15-seconds/282280 "2009-02-19T19:32:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![camaleon](https://avatars.discourse-cdn.com/v4/letter/c/e36b37/32.png) [@camaleon](https://forum.kirupa.com/u/camaleon)\
**Post date:** [February 19, 2009, 7:32pm UTC](https://forum.kirupa.com/t/auto-update-every-15-seconds/282280/1 "2009-02-19T19:32:01Z")

</div>

hi guys.

I have a AS 1.0 code that when i refresh my page change an especific swf file.  
**but i want that every 15 second, change automatic the files without refresh the page?**

how i can do it?

i dont know use action script.  
**would anybody please do that i want to do?**

thanks.

```auto

filename = ["01.swf", "02.swf", "03.swf", "04.swf", "05.swf"];
path = "swf/";
i = filename.length;
k = Math.floor(Math.random()*i);
loadMovie(path+filename[k], movieTarget);

```
