Return to Snippet

Revision: 36966
at December 1, 2010 23:13 by weavermedia

Initial Code
// AS3 code loads the contents of getDate.php

var ldr:URLLoader = new URLLoader()
ldr.load(new URLRequest(""))
ldr.addEventListener(Event.COMPLETE, onLoaded)
function onLoaded(evt:Event){

// getDate.php sits on a server you can access
// and simply outputs the date - the (j) tells it to output the date as a number
// check for more options on the output
// script contents below (without the comment slashes of course):

//print "&serverDate=".date(j); 

Initial URL

Initial Description

Initial Title
AS3 Get the time/date from the server with a simple PHP script

Initial Tags

Initial Language
ActionScript 3