net webcam img into director

2004-04-12 Thread thor
Hi lingomasters! I need to receive images from a webcam on the internet into a director movie. (so no need of a webcam xtra) The idea is simple: I load the image into a castmember and reload it once in a while (say, every 30 secs): member(webimg).importFileInto("http: url of webcam image") This

Re: net webcam img into director

2004-04-12 Thread Alex da Franca
At 18:45 Uhr +0200 12.04.2004, thor wrote: Do you have any tips on how to solve this problem? as far as I remember there's a movie method 'cachedocverify' it defaults to: put cacheDocVerify() -- #once set it to #always like so: cacheDocVerify #always I can't tell how reliable it is across browser

Re: net webcam img into director

2004-04-12 Thread Valentin Schmidt
what I usually do in such a case is to append a random-parameter to the URL, which makes director bypass the cache: -- in moviescript, e.g. on prepareMovie the randomseed = the ticks -- when updating image member(webimg).filename= "http://webcamurl/foo.cgi?"; & random(the maxinteger) (url could

Re: net webcam img into director

2004-04-12 Thread grimmwerks
You have to do a fake random number on the end of the request for director to see it as a new image, ie http://camURL/image?203030 So something like Tnum = random(9000) TheUrl = theURL = "?" & tNum [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.co

Re: net webcam img into director

2004-04-12 Thread Mathew Ray
Or you could pass it the current yr/date/hr/min/sec as a string, since you should be guaranteed that number won't come up twice :0) I think buddy or DirectOS or the like has a handy function for getting the seconds since the Unix epoch, useful as a timestamp as well. ex w/buddy: str_noCache = b

Re: net webcam img into director

2004-04-12 Thread biju george
Dear thor, There is an excellent illustrated example for refreshing webcam image after a fixed time interval at: http://director-online.com/buildArticle.php?id=1067 Will Turnage had explained all about clearing Director's web cache and has provided a working shockwave demo too!!! Regards, Biju