?
Solved

Flash/Actionscript - unloading loadvars file

Posted on 2007-03-30
3
Medium Priority
?
494 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
3 Comments
 
LVL 13

Accepted Solution

by:
FLAASHER earned 2000 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

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

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 …
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

719 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