Cache problems...PHP & FLASH MX

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!

modify this: http://www.kirupa.com/developer/actionscript/tricks/cache.asp

myLVs.load(“myScript.php?uniqueID=” + getTimer());

???

I’m just posting this again since random() function have possibility of returning the same results… :wink:

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

Thanks a bunch!

I really appreciate the help you guys give on this forum.

Again…thanks!

Yup… That’s a good idea, lostinbeta… Please do… :wink:

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:

[AS]
onClipEvent (load) {
loadVariables(“http://localhost/test.php”, this, “GET”);
}[/AS]

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!

[AS]onClipEvent (load) {
loadVariables(“http://localhost/test.php?uniqueID=”+getTimer(), this, “GET”);
}[/AS]

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.