-
what's the best way to check if your variables have been posted successfly?
-Rui
-
What are you posting variables to?
-
php..
i suppose it would be somthing from php?
-
Hi,
you could add some code to your php that adds a time stamp and all the HTTP_POST_VARS or HTTP_GET_VARS to a log file
Musicman
-
hmmm but what's that going to achieve?
coz like i want to know if the database has been sucessfully updated then reload it..?
i suppose i could create a variable that holds it's old data then compare the data recieved to see if it's different if not reload it..? seems a little clumsy..
also just curious if anyone has an example of the onclipevent data?
because it doesn't seem to work...
i load a file locally and it loads but the trace i put in the onclipevent doesn't come up.. neither do the actions...
and i know the file was loaded because i checked the variables..?
-rui
-
I don't use PHP I use ASP, but the concept's the same.
All you have to do is have the PHP page print out a little string for Flash to receive, like:
"jobDone = true"
Then, wherever you have the Flash Movie load variables to, put an onClipEvent(Data) action:
onClipEvent(Data) {
if (jobDone == "true") {
[DO WHATEVER YOU WANT TO DO AFTER DATABASE IS UPDATED]
jobDone = "false";
}
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|