PDA

View Full Version : UnCaching a loaded image ?



7of9
April 23rd, 2003, 11:36 AM
Is it possible to unCache a loaded image (ie. jpg, gif etc.) from the loadMovie function? Something similar to the following:

var sUrl
var sDate= new Date();
//Add cache remover...
sUrl= "http://MyServer/scripts/MyFile.asp?x=" + escape(sDate);
loadVariablesNum (sUrl, "0", "POST");

In other words is it possible to do something like this?

MyMc.LoadMovie("MyImage.jpg?x=" + escape(sDate));

Jubba
April 23rd, 2003, 01:14 PM
well sDate = new Date() doesn't really do anything that you can put into a variable string. All that does is initiallizes the time object in order for you to use time (hour/mins/secs) check out this article:

http://www.kirupa.com/developer/actionscript/tricks/cache.asp