View Full Version : cache problems...PHP & FLASH MX
whodatman
March 29th, 2003, 10:12 AM
I'm having problems getting my PHP content...to "refresh".
I have a site....100% Flash...with a dynamic window...that get's data dyanamcially via PHP.
Bringing in the data is no problem....but if I refresh the page...my content is not updated.
I have tried all the META tags....like ..."no cache"...."refresh".
Nothing works.
I wanted to know if there is some type of syntax or something within Flash itself....to "make it" reload the content of this dynamic window?
Please Help!
Jubba
March 29th, 2003, 12:04 PM
modify this: http://www.kirupa.com/developer/actionscript/tricks/cache.asp
CyanBlue
March 29th, 2003, 01:41 PM
myLVs.load("myScript.php?uniqueID=" + getTimer());
???
I'm just posting this again since random() function have possibility of returning the same results... ;)
lostinbeta
March 29th, 2003, 02:07 PM
We should maybe add a few different ways of doing this no cache thing to that tutorial.
I really like Sens string prototype method and you can use it easily across multiple files.
I should bring this up to Kirupa
whodatman
March 29th, 2003, 02:10 PM
Thanks a bunch!
I really appreciate the help you guys give on this forum.
Again....thanks!
CyanBlue
March 29th, 2003, 02:22 PM
Yup... That's a good idea, lostinbeta... Please do... ;)
whodatman
March 29th, 2003, 02:58 PM
ok...not working....I'm confused.
This is what I have currently:
A dynamic window with a varible name of "myVar", within a Moive Clip.
I have the following actions assisgned to the Movie Clip:
onClipEvent (load) {
loadVariables("http://localhost/test.php", this, "GET");
}
Test.php looks like this:
<?php
$x = "abc";
print "myVar=$x";
?>
This all works fine. (except for the caching problems)
How would I alter the above to what you guys suggested?
Sorry for my ignorance...and thanks for the help in advance!
lostinbeta
March 29th, 2003, 03:00 PM
onClipEvent (load) {
loadVariables("http://localhost/test.php?uniqueID="+getTimer(), this, "GET");
}
Should work. Keep in mind that your file is already cached, so you need to clear your cache to see the new file with the no cache code.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.