|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Compare external Variables
Any ideas as to why this ain't working???
PHP Code:
PHP Code:
Code:
//This is the first frame actions in the post swf...
loadVariablesNum("online.php", 0, "POST");
Code:
//This is the first frame actions in the 2nd swf...
loadVariablesNum("getdate.php", 0);
loadVariablesNum("online.dat", 0);
if (postdate == thisdate) {
onlineText = "Online";
} else {
onlineText = "Offline";
}
The first swf file is going to be a stand alone app that continually posts to the online.dat file whilst i'm online, once I go offline, it will stop posting. The 2nd swf is going to be a serverside client, people who go to my site can view if I'm on or offline. This (is supposed to) compare the current time (getdate.php) and the last posted time (online.dat) and display the results in a Dynamic Text Field (onlineText). PLEASE HELP!!! |
|
#2
|
||||
|
||||
|
Huh... usually the case!...
Worked it out guys... I think it was trying to compare the variables bevore it actually recieved them, I simply put... if (postdate == thisdate) { onlineText = "Online"; } else { onlineText = "Offline"; } in the second keyframe and now it works ![]() |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Compare external Variables |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|