don't cache swf
- Started
- Last post
- 6 Responses
- nosaj
Is there a way to prevent an swf file from being cached when loaded from another swf file?
- e-pill0
ask doogan.
- nosaj0
ask doogan.
e-pill
(Apr 2 07, 11:09)
--------------OK, doogan
Is there a way to prevent an swf file from being cached when loaded from another swf file?
nosaj
(Apr 2 07, 11:08)
- spot130
I'm not Doogan... but if you give the file a unique URL like:
"movie.swf?cache=" + new Date().getTime();
it shouldn't cache because the time will change every time it loads.
- joyride0
seems to be the week of the cache issues with flash
add this to the end of the load:
yourMovie.swf?=98798465465
so "yourMoveie.swf + "?="+new Date().getTime()
lets see if that goes through
- cosmo0
seems like everyone is running into this problem. Joyride helped me out last night with the same issue.
- st33d0
I use this trick for updating xml too. But if you want it to work on your local hard-drive when testing you'll want an inline condition to make sure you load local at home and new server stuff on site:
thing.load((_url.indexOf("http... < 0) ? "assets/layout.xml" : "assets/layout.xml" + "?nocache=" + random(99999))