title: Retrieving time from a time server from flash (as3)
body: <p>Please do forgive a newbie to all this fancy Action script and flash in general.
  Prior to any comments, I have been trawling for the answers for a good while now - with no luck so I figured I would poise the question at a few of the boffins on here.</p>
  
  <p>So here it is.  What I am trying to accomplish is two simple analogue world clocks (which I had already done using Jquery) but IE has turned out to be the biggest nightmare to get this working correctly in - so I am trying a different avenue.</p>
  
  <p>I have written a small script to retrieve server times which is below:</p>
  
  <pre><code>var ldr:URLLoader = new URLLoader()
  ldr.load(new URLRequest("http://chronos.csr.net"))
  ldr.addEventListener(Event.COMPLETE, onLoaded)
  function onLoaded(evt:Event){
      trace(ldr.data)
  }
  </code></pre>
  
  <p>Could someone tell me how I could print out the output from the above syntax to ensure it is   in fact working?  And seeing I pulled bits of the code from my various searches - is it a requirement to have the url pointing to a specific file?</p>
  
  <p>If the above is by the grace of the almighty Pixel in fact working, how would one go about inputing it into the code below:</p>
  
  <pre><code>var now:Date;
  var ct:Timer = new Timer(1000); 
  ct.addEventListener(TimerEvent.TIMER, onTick);
  ct.start();
  function onTick(event:TimerEvent):void{
      now = new Date();
      var s:uint = now.getSeconds();
      var m:uint = now.getMinutes();
      var h:uint = now.getHours();
      second_hand_mc.rotation = 180 + (s * 6);
      minute_hand_mc.rotation = 180 + (m * 6);
      hour_hand_mc.rotation = 180 + (h * 30) + (m * 0.5);
  }
  </code></pre>
  
  <p>And please do take into account DST as this was a slight pitfall I had even with JS (would have worked it out eventually but time is not on my side - excuse the pun).</p>
  
  <p>Any and all help would be greatly appreciated!</p>