Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 28th, 2004, 01:03 PM
Kryo's Avatar
Kryo Kryo is offline
WOO!!! I'm a member!!!
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Uk
Posts: 95 Kryo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 10 m 49 sec
Reputation Power: 5
Send a message via ICQ to Kryo Send a message via MSN to Kryo Send a message via Yahoo to Kryo
Compare external Variables

Any ideas as to why this ain't working???

PHP Code:
//An swf file posts to this file...
<?php
$postdate
=gmdate("H:i");
$fp fopen("online.dat""w");
fputs ($fp"postdate=$postdate"); 
fclose($fp);
?> 


PHP Code:
//A different swf calls this file...
<?php
$getdate
=gmdate("H:i");
print 
"thisdate=$getdate";
?> 


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!!!

Reply With Quote
  #2  
Old February 28th, 2004, 02:02 PM
Kryo's Avatar
Kryo Kryo is offline
WOO!!! I'm a member!!!
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Uk
Posts: 95 Kryo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 10 m 49 sec
Reputation Power: 5
Send a message via ICQ to Kryo Send a message via MSN to Kryo Send a message via Yahoo to Kryo
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Compare external Variables


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT