Solved

Flash/Actionscript - unloading loadvars file

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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

739 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