Advertisement

10.07.2008 at 10:59AM PDT, ID: 23794652 | Points: 200
[x]
Attachment Details

Flash webcam image refresh

Asked by ocolon in ActionScript, PHP Scripting Language, Computer Web Cameras

Tags: , ,

I have a webcam programmed to take a snapshot (webcam.jpg) and to upload that image via ftp every two minutes.  The problem I am running into is that the image/swf gets cached and so the user doesn't see the updated image.  I've searched high and low for a solution and can't find a thing.  Is there a way to force a fresh load of the swf that will also force a fresh load of that webcam.jpg that is dynamically loaded?  Or is there a bit of actionscript that will only force a refresh of the image, but not the .swf?  I don't forsee having to do many changes to the Flash file, so maybe just the image refresh will be fine.

I am open to any other suggestions that might make this thing work/function better.

note:  credit must go to Mike Davidson at mikeindustries.com for the webcam header idea.

Thanks.Start Free Trial
1:
2:
3:
4:
_root.createEmptyMovieClip("container",1);
container.loadMovie("http://www.chucktowntavern.com/images/webcam/webcam.jpg?nocache");
container._x = -50;
container._y = -180 ;
[+][-]10.07.2008 at 11:50AM PDT, ID: 22662320

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 - Hierarchy / EE_QW_2_20070628