Groups | Blog | Home
all groups > flash (macromedia) > july 2004 >

flash (macromedia) : Load Vars Help


Matt Palermo
7/1/2004 10:20:04 PM
I am building a chat application and I have chat conversations stored in a
database. I have set my Flash movie to load these external varables from a
small PHP script that I wrote. I have it loading everything into a textarea
and it's working fine. But now I need the Flash app to check peridically to
see if any new chat messages were posted to the script. I have it initially
loading the whole conversation just fine, but how do I reload the PHP
variables (the conversation) peridically to check for new messages. I will
also need it to reload when a user clicks the submit button to submit their
message. Any ideas on how to make it reload?

Thanks,

Matt
http://sweetphp.com

Jack
7/2/2004 12:28:08 PM
to force the server to send anew, add some junk -

myScript = "blah.php";
verDate = new Date();
verTime = verDate.getTime();
myLoadVars.load(myScript+"?vers="+verTime);

hth

[quoted text, click to view]

Matt Palermo
7/2/2004 12:36:01 PM
How often will this check for new data?


[quoted text, click to view]

Jack
7/2/2004 6:15:49 PM
as often as you call it


[quoted text, click to view]

AddThis Social Bookmark Button