[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 504
  • Last Modified:

Flash/Actionscript - unloading loadvars file

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
alexander001
Asked:
alexander001
  • 3
1 Solution
 
FLAASHERCommented:
data_var = new LoadVars();
data_var.load("text_poll.txt?cachebuster=" + new Date().getTime());
0
 
FLAASHERCommented:
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
 
FLAASHERCommented:
sorry :)
and will          NOT        load the one in ur cache


FLAASHER
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now