Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flash loadvars and refresh issue!

Status
Not open for further replies.

fireburner69

Programmer
Aug 22, 2002
108
GR
Ok I have a flash movie that every 10sec it checks for a page to loadsome data!

Everything works fine! but the page with the data changes every 10min or so!
The flash movie does not load the new data!
I hold the old ones!

In y browser everything works fine!
But from the flash it hold and old page!

How can I set up the flash so that everytime it really reads the new page again and again! and not try to earn time by loading the already downloaded page!

something like refresh!!

Any ideas?
thanx for your time!
 
try when your loading the variables add a random number on the end so it has to download the page - the browser thinks its a differnet page!

Code:
var rand = random(8564) //creates a random number
loadVariables("YourPage.php?"+rand);

gd luck


Martin

Computing help and info:

 
I had the same problem, until i used a random variable along with the call. ITs because the data is stored locally one your machine, and it dosnt unserstand you want the new data and not the cached data.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top