Groups | Blog | Home
all groups > flash (macromedia) > march 2004 >

flash (macromedia) : Force .txt reload


George
3/1/2004 10:32:46 PM
Hello,

I am feeding variables in my flash movie via a .txt file.
I am noticing that in order to refresh my data, after editing the .txt file,
I have to empty my cache in order for the changes to become apparent.

Is there a way to force my .txt file to reload?

Any help will be appreciated.

George

George
3/2/2004 1:09:04 AM
Thank you very much for your great advice.

I was able to find the following:

loadVariables("data.txt?" + getTimer(), _root);

It worked like a charm.

Thanks,

George

[quoted text, click to view]

urami_
3/2/2004 12:47:58 PM

[quoted text, click to view]

Well, cache was to prevent you from loading same content all over ,
suppose to speed up your surfing , which in some cases , like variables,
can work against us.
there is however a way to make the browser download new file from the server each time
you request it.
Stamp it with timer or date , or some random junk and it will never be identical
to the one in cache , making browser thing it has to get new one .
If you check the forum archives and search for Cache , you should find samples of
load variable actions with no Cache strings .



Regards


urami_*

<hol>
http://flashfugitive.com/
</hol>

AddThis Social Bookmark Button