Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flash webcam

Status
Not open for further replies.

ro6er

Programmer
Jul 1, 2003
76
I had an idea to make a swf that auto refreshed an image once ever so often from a dir which contains a constantly updated image from my webcam. I can get the swf to point to the dir but I don't know how to make it refresh it's self. And I don't want to use a meta refresh as I think it looks a bit naff.

Roger
 
something like this ought to work by getting around the cache problem

Movieclip.prototype.loadVarsNoCache=function(url){
if(url.indexOf("?") == -1){
this.loadVariables(url+"?time="+getTimer());
} else { this.loadVariables(url+"&time="+getTimer());
}
}


to use

myMcPath.loadVarsNoCache("
probably best just to call this ar regular times using setinterval


_______________________________________
You know you're old if you can remember when bacon, eggs and sunshine were good for you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top