Packageinfo.waterlijn.net
Classpublic class ServerInfo
InheritanceServerInfo Inheritance flash.events.EventDispatcher

The ServerInfo class.


Example
import info.waterlijn.net.*;
import flash.text.*;

var tf:TextField = new TextField();
tf.autoSize = 'left';
addChild(tf);

var si:ServerInfo = new ServerInfo();
si.addEventListener(Event.COMPLETE, showInfo);
si.collect('www.koolmoves.com');

function showInfo(e:Event):void {
 if (si.date) tf.text = 'Server time : ' + si.date;
}



Public Properties
 PropertyDefined by
  date : Date
[read-only] Server date
ServerInfo
  server : String
[read-only] Server
ServerInfo
Public Methods
 MethodDefined by
  
collect(server:String):void
Collect the server information for the specified server.
ServerInfo
Events
 EventSummaryDefined by
   The complete event is broadcasted when the server information has been collected.ServerInfo
    ServerInfo
    ServerInfo
Property detail
dateproperty
date:Date  [read-only]

Server date

Implementation
    public function get date():Date
serverproperty 
server:String  [read-only]

Server

Implementation
    public function get server():String
Method detail
collect()method
public function collect(server:String):void

Collect the server information for the specified server.

Parameters
server:String
Event detail
completeevent 
Event object type: flash.events.Event

The complete event is broadcasted when the server information has been collected.

ioErrorevent  
Event object type: flash.events.IOErrorEvent

securityErrorevent  
Event object type: flash.events.SecurityErrorEvent