Refreshing a loadmovie(jpg)

I’m trying to use loadmovie to bring in jpg images which refresh every 30 seconds on the server. It seems that while the image refreshes on the server, the SWF uses a cached version–and so doesn’t refresh the image after 30 seconds passes.

what is the best way to tell it to check from the server everytime?

jeffwhite

Here is an excellent method…

http://www.kirupaforum.com/showthread.php?s=&threadid=14268&perpage=15&pagenumber=3

Thanks for pointing me to that page…I’m a newbie, though–I tried putting that script after the “on (release)” action of my button, and then following it up with the “load movie” command (still in the braces for the on (release)…and nothing happened. I’m not exactly sure which object to put this stuff on…

Can you be more direct…like Flash for Dumb Dummies!

Jwhite

String.prototype.noCache = function(){
return (_url.substr(0,4) != “file”) ? this + “?”+new Date().getTime() : this;
}
mybutton.onRelease = function(){
loadMovieNum((“myMovie.swf”).noCache() ,1);
}

Okay, on the button called “show” I have this:

on (release) {String.prototype.noCache = function(){
return (_url.substr(0,4) != “file”) ? this + “?”+new Date().getTime() : this;
}
show.onRelease = function(){
mcImage.loadMovie((txtImageURL).noCache() ,1);
};}

It says there are no code errors–but it doesn’t do anything. I have an input box called “txtImageURL” into which I type the whole URL of the JPG I’m trying to get (including http://…). I’m trying to get the jpg to show where the mcImage instance is.

What am I missing?

jwhite

You should insert what i have posted above in the first frame actions!