// CODE IN FLASH ==========================
var phpFile:String = "
http://localhost/connecting/TestConn.php";
fun
ction callServer(e:MouseEvent):v
oid
{
var urlRequest:URLRequest = new URLRequest(phpFile);
var loader:URLLoader = new URLLoader();
loader.addEven
tListener(
Event.COMP
LETE, serverResponse);
loader.loa
d(urlReque
st);
}
funct
ion serverResponse(e:Event):vo
id
{
var loader:URLLoader = URLLoader(e.target);
var variables:URLVariables = new URLVariables(loader.data);
timeTxt.te
xt = variables.returnValue;
}
// CALL SERVER AUTOMATICALLYcallServer(null);