Solved

Flash/Actionscript - unloading loadvars file

Posted on 2007-03-30
3
475 Views
Last Modified: 2007-03-30
I am reading a file into flash to get some variables.  

data_var = new LoadVars();
data_var.load("text_poll.txt");

The loading is fine and i can read the file.  However since flash loaded the file into the temporary internet files.  Once flash updates the file...it tries to read it again.  However since the there is a temporary file, it reads that one instead of the one in the server.

Is there a way for actionscript to unload loadVars? or is there a way for actionscript to delete a text document from the temporary internet files?
0
Comment
Question by:alexander001
  • 3
3 Comments
 
LVL 13

Accepted Solution

by:
FLAASHER earned 500 total points
ID: 18825615
data_var = new LoadVars();
data_var.load("text_poll.txt?cachebuster=" + new Date().getTime());
0
 
LVL 13

Expert Comment

by:FLAASHER
ID: 18825632
the modification i made with ur code make it require a new version of ur text file each time and will load the one in ur cache

FLAASHER
0
 
LVL 13

Expert Comment

by:FLAASHER
ID: 18825694
sorry :)
and will          NOT        load the one in ur cache


FLAASHER
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
The goal of the tutorial is to teach the user how to how to record live broadcast.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question