Copy link to clipboard
Copied
I created a vote feature in Flash that writes user votes to and reads curent average from SQL database. Whenever you vote, the average should add the new vote and show change. This works OK with Chrome but not in IE. Refresh the window does not work. The only way to show the new data is to exit the browser and launch it again.
I checked the temporary internet files folder and found the only way to update it without quitting each time is to delete the ASP that query the SQL database from cache.
Is there a way for Actionscript to force reload the ASP each time?
Thanks for your advice!
add a changing query string to your asp call, eg
urlloader.load(new URLRequest('your_asp.asp?qs='+Math.random()));
Copy link to clipboard
Copied
add a changing query string to your asp call, eg
urlloader.load(new URLRequest('your_asp.asp?qs='+Math.random()));
Copy link to clipboard
Copied
That solves it. Thanks for the help!
Copy link to clipboard
Copied
you're welcome.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now