all groups > macromedia flash sitedesign > october 2003 >
You're in the

macromedia flash sitedesign

group:

How To Force a Browser To Refresh an swf Movie.


How To Force a Browser To Refresh an swf Movie. ChrisHomer
10/31/2003 4:13:42 PM
macromedia flash sitedesign:
Maybe I have gone about this all wrong, but I have embedded swf's in my site so that when someone clicks an item in the nav menu, the new section loads (ie loadMovie). The problem I am having is if I make a change/update to the embedded swf, the change does not appear in the browser until I clear my cache ('delete files' in IE). Does anyone know how to force the browser to download the most updated file?

Thanks
- Chris


Re: How To Force a Browser To Refresh an swf Movie. itsrainin
10/31/2003 8:11:12 PM
i think there is java script that will force the browser to refresh, not
sure exaclty how, but ive seen it somewhere, search google for it,
javascript should get you a head start

itsrainin


[quoted text, click to view]
site so that when someone clicks an item in the nav menu, the new section
loads (ie loadMovie). The problem I am having is if I make a change/update
to the embedded swf, the change does not appear in the browser until I clear
my cache ('delete files' in IE). Does anyone know how to force the browser
to download the most updated file?
[quoted text, click to view]

Re: How To Force a Browser To Refresh an swf Movie. Laiverd.COM
11/1/2003 12:50:42 PM
http://groups.google.com/groups?as_q=avoid%20cache%20problem&safe=images&ie=UTF-8&oe=UTF-8&as_ugroup=*flash&lr=&hl=en

[ copy paste to adressbar in case of broken URL ]

158 results in .9 seconds. That is faster than anyone here can answer your
question, so save yourself and us some time by doing some research yourself
before posting. A lot of the questions asked here have been asked before and
that's why the google archive is such a great place to start that research.

Hope it works out for you.

John

--
----------------------------------------------------------------------
Please reply only to the group, so everyone may share
----------------------------------------------------------------------
RESOURCES
http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash
http://www.macromedia.com/desdev/mx/flash/
http://www.macromedia.com/v1/tipsubmission/maintopic_browse.cfm
----------------------------------------------------------------------

Re: How To Force a Browser To Refresh an swf Movie. ChrisHomer
11/1/2003 7:10:01 PM
Ok That Worked. For those of you that don't want to follow the link, here is the solution I am using:

if loading test.swf, then simply load test.swf?DATE=whateverthedateis

This will mean that the user will see an updated page within 24hrs.
If you want it to update more often simply tag on a timestamp after the date.
Since I use PHP remoting, I would simply grab the Unix timestamp which is different ever second.

Hope this helps everyone!

AddThis Social Bookmark Button