Hi there.
I'm going crazy trying to get the server time.
My php-file is called getDate.php and the content is
Code:
<?php
echo date("Y/m/d/H/i/s");
?>
my flash file has a text field called resultBox and the following action script
Code:
var req:URLRequest = new URLRequest("getDate.php");
var loader:URLLoader = new URLLoader(req);
// loader.load();
loader.addEventListener(Event.COMPLETE,handleGetDate);
function handleGetDate(event:Event):void
{
resultBox.text=event.target.data;
}
Does anybody know what Im doing wrong?
i get no output when i try it on the server, but php is enabled.
I also attached the file.
Any help wold be GR8
Thanx
mavi