VitiminD
08-08-2005, 05:00 AM
Say I have an image on a web server that is constantly being updated by a webcam. Is there a way that I can tell Flash to be loading that image every 250ms?
The camera is updating it like 20 times a second and I would like to provide the most seamless effect of motion.
My current code, while efficient and almost gets the job done, causes the mc to go away each iteration of getImage() instead of seamlessly loading it over my existing image.
createEmptyMovieClip("imageHolder", 1);
setInterval(getImage, 500);
function getImage() {
imageHolder.loadMovie("image.jpg", this);
}
Let me know what ya think!
The camera is updating it like 20 times a second and I would like to provide the most seamless effect of motion.
My current code, while efficient and almost gets the job done, causes the mc to go away each iteration of getImage() instead of seamlessly loading it over my existing image.
createEmptyMovieClip("imageHolder", 1);
setInterval(getImage, 500);
function getImage() {
imageHolder.loadMovie("image.jpg", this);
}
Let me know what ya think!