Solved

Flash/Actionscript - unloading loadvars file

Posted on 2007-03-30
3
458 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
The viewer will learn how to count occurrences of each item in an array.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

919 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now