all groups > flash (macromedia) > august 2006 >
You're in the

flash (macromedia)

group:

loadMovie doesn't load current swf!



loadMovie doesn't load current swf! respondplease
8/31/2006 10:51:03 PM
flash (macromedia): Hi all,

I am loading several swf's into my main Flash movie on the timeline. I've
published my Flash into an HTML document and everytime I update my smaller swf
and upload it to the server, the older version of the swf continues to play! I
even take careful steps to publish the smaller swf file. Then I even publish my
main Flash movie, and then I upload all the files to the server in the same
folder and everything! But every time the html plays it always plays the older
version of the smaller swf that I edited and uploaded! Do I need to incorporate
the source code for the smaller swf into my HTML doc as well? So frustrating,
please help!

Thanks
Re: loadMovie doesn't load current swf! urami_
9/1/2006 12:00:00 AM


[quoted text, click to view]

clear cache folder, you loading files from your computer temp folders, not server.
Re: loadMovie doesn't load current swf! ZeroLogik
9/1/2006 12:04:41 AM
[quoted text, click to view]
Your browser's cache is just hanging on to the old files. This has
little to do with Flash really. It's an issue with your browser not
determining that the .swf files have changed on the server. Empty your
cache and you'll be fine. Sometimes restarting your browser can be
enough as well. Or you can always change your cache settings to check
for new content more frequently.

Hope that helps.
--
ZeroLogik - tech podcast with a kick
Re: loadMovie doesn't load current swf! respondplease
9/1/2006 6:25:28 PM
hey urami,

thanks for your reply. it works now. funny, because I did clean everything -
cache, cookies, temporary internet files, but both browsers (IE and Firefox)
still played the old version.

but it works now. just wanted to say thanks!
Re: loadMovie doesn't load current swf! urami_
9/2/2006 12:00:00 AM


[quoted text, click to view]

There is a way to make sure your force new file all the time rather than cached one.
You need to add some random junk to the file, this will make the server download new
copy each time the browser seek the file as it won't be identical to the one found in
cache while comparing.

It apply to loading swf or variables:

filename.swf?Flushcache=" +random(65000)

else you can always stamp the file with "time" so each file will never be
identical to another forcing browser to get new each session.

FILE.swf?" + new Date().getTime()

For example :

<PARAM NAME=movie VALUE="FILE.swf?" + new Date().getTime()">

Same apply if you load content into flash, to both, variables or swf files

loadVariables("url.txt?nocache="+random(65000), 0);



--
Best Regards

Urami


--


<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
Re: loadMovie doesn't load current swf! Redigoogle
9/2/2006 9:30:01 AM
Urami,
Your suggestion sounds important
since would not one's site become cached on any viewer's browser?
Seems like it also applies to posting of almost any content
as I experienced the same problem with newly posted images and html
scripts.

Do you recomment the random approach or the time stamp?
One better than the other?

Since I'm a newbie to this web development stuff
should one stamp every page?

Thank you
Cliff


[quoted text, click to view]
AddThis Social Bookmark Button