# Webcam setInterval problems with IE (works in FF)

**URL:** <https://forum.kirupa.com/t/webcam-setinterval-problems-with-ie-works-in-ff/77858>\
**Category:** flash\
**Created:** [January 31, 2005, 1:03am UTC](https://forum.kirupa.com/t/webcam-setinterval-problems-with-ie-works-in-ff/77858 "2005-01-31T01:03:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SomeCallMeBub](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@SomeCallMeBub](https://forum.kirupa.com/u/SomeCallMeBub)\
**Post date:** [January 31, 2005, 1:03am UTC](https://forum.kirupa.com/t/webcam-setinterval-problems-with-ie-works-in-ff/77858/1 "2005-01-31T01:03:54Z")

</div>

Okay, so I was working on getting a webcam to work inside of flash, so far it works in Firefox, but it doesn’t work in Internet Explorer. Here’s what I’ve got in hte first frame of the timeline:

* * *

var i = 0;  
function updateWebcam() {  
i++;  
loadMovieNum(“cam\_5.jpg”, i);  
trace(i);  
}  
webcamInterval = setInterval(updateWebcam, 10000, “updateWebcam”);  
updateAfterEvent();

* * *

i’ve got it pusblished online [here](http://www.peterdahlen.com/webcam/)  
(nothing exciting, just a street in Boston outside my cube so far…)

Basically it loads the new jpg in every 10 seconds onto a new level. On IE, it works once but then doesn’t reload anything, on FF it works fine. Any thoughts on why this is, or any better ideas on how to load in webcam jpgs?
