info.waterlijn AS3 API Documentation | All Packages | All Classes | Index | Frames No Frames |
Class ServerInfo

Package | info.waterlijn.net
Class | public class ServerInfo
Inheritance | ServerInfo 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

| Property | Defined by
--- | --- | ---
|  | date : Date [read-only] Server date | ServerInfo
|  | server : String [read-only] Server | ServerInfo

Public Methods

| Method | Defined by
--- | --- | ---
|  | collect(server:String):void Collect the server information for the specified server. | ServerInfo

Events

| Event | Summary | Defined by
--- | --- | --- | ---
|  | complete | The complete event is broadcasted when the server information has been collected. | ServerInfo
|  | ioError |  | ServerInfo
|  | securityError |  | ServerInfo

Property detail

date | property

`date:Date` [read-only]

Server date

Implementation
`public function get date():Date`

server | property |

`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

complete | event

Event object type: `flash.events.Event`

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

ioError | event |

Event object type: `flash.events.IOErrorEvent`

securityError | event |

Event object type: `flash.events.SecurityErrorEvent`

Last update : 02/19/2008