# Reloading a picture at a set amount of time

**URL:** https://forum.kirupa.com/t/reloading-a-picture-at-a-set-amount-of-time/26170
**Category:** Uncategorized
**Created:** [July 20, 2003, 3:33pm UTC](https://forum.kirupa.com/t/reloading-a-picture-at-a-set-amount-of-time/26170 "2003-07-20T15:33:58Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Yeldarb](https://avatars.discourse-cdn.com/v4/letter/y/51bf81/32.png) [@Yeldarb](https://forum.kirupa.com/u/Yeldarb)
#### Post date: [July 20, 2003, 3:33pm UTC](https://forum.kirupa.com/t/reloading-a-picture-at-a-set-amount-of-time/26170/1 "2003-07-20T15:33:58Z")

</div>

is there a way to have a picture refresh every 3 seconds?  
i’m trying to make a flash page for my desktop background, and i want a webcam on it… i went through their source and found out that it’s actually just a picture that’s resaved and reloaded every 3 seconds, but they did it with java…  
thanks

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 20, 2003, 5:31pm UTC](https://forum.kirupa.com/t/reloading-a-picture-at-a-set-amount-of-time/26170/2 "2003-07-20T17:31:15Z")

</div>

your problem is that flash needs to take the picture from outside the swf file itself

anyway for the timer search the forum for these functions: getTimer or setInterval. another way to do is to place AS code at a certain frame calculated using your fps rate (if it’s 12 frames per second you would set your as on the 12\*3 = 36th frame)  
although it will sometime work with bugs if you use it…
