Packagevegas.events
Classpublic class NetServerEvent
InheritanceNetServerEvent Inheritance BasicEvent Inheritance flash.events.Event

This is invoked in a NetServerConnection object during a connection with a server.



Public Properties
 PropertyDefined By
  connection : NetServerConnection
Indicates the NetServerConnection target of this event.
NetServerEvent
 Inheritedcontext : *
Determinates the optional context of this event.
BasicEvent
  info : *
Indicates the NetServerInfo reference of this event.
NetServerEvent
  status : NetServerStatus
Indicates the NetServerStatus reference of this event.
NetServerEvent
 Inheritedtarget : Object
[override] Indicates the custom event target.
BasicEvent
 InheritedtimeStamp : uint
[read-only] Indicates the timestamp of the event.
BasicEvent
 Inheritedtype : String
[override] Returns the type of event.
BasicEvent
Public Methods
 MethodDefined By
  
NetServerEvent(type:String, connection:NetServerConnection = null, status:NetServerStatus = null, info:* = null)
Creates a new NetServerEvent instance.
NetServerEvent
  
clone():Event
[override] Returns a shallow copy of this object.
NetServerEvent
 Inherited
dispatch(channel:String = null):void
Dispatch the event with the global event flow.
BasicEvent
 Inherited
toString():String
[override] Returns the string representation of this event.
BasicEvent
Protected Methods
 MethodDefined By
 Inherited
setTimeStamp(time:uint = 0):void
Sets the timestamp of the event (used this method only in internal in the Event class).
BasicEvent
Public Constants
 ConstantDefined By
  ACCEPT : String = accept
[static] The name of the NetServerEvent when the connection is accepted.
NetServerEvent
  CLOSE : String = close
[static] The name of the NetServerEvent when the connection is closed.
NetServerEvent
  REJECT : String = reject
[static] The name of the NetServerEvent when the connection is rejected.
NetServerEvent
Property Detail
connectionproperty
connection:NetServerConnection

Indicates the NetServerConnection target of this event.


Implementation
    public function get connection():NetServerConnection
    public function set connection(value:NetServerConnection):void
infoproperty 
info:*

Indicates the NetServerInfo reference of this event.


Implementation
    public function get info():*
    public function set info(value:any):void
statusproperty 
status:NetServerStatus

Indicates the NetServerStatus reference of this event.


Implementation
    public function get status():NetServerStatus
    public function set status(value:NetServerStatus):void
Constructor Detail
NetServerEvent()Constructor
public function NetServerEvent(type:String, connection:NetServerConnection = null, status:NetServerStatus = null, info:* = null)

Creates a new NetServerEvent instance.

Parameters
type:String — the string type of the instance.
 
connection:NetServerConnection (default = null) — The NetServerConnection reference of this event.
 
status:NetServerStatus (default = null) — The NetServerStatus reference of this event.
 
info:* (default = null) — The information object of the event (NetServerInfo or generic object).
Method Detail
clone()method
override public function clone():Event

Returns a shallow copy of this object.

Returns
Event — a shallow copy of this object.
Constant Detail
ACCEPTConstant
public static const ACCEPT:String = accept

The name of the NetServerEvent when the connection is accepted.

CLOSEConstant 
public static const CLOSE:String = close

The name of the NetServerEvent when the connection is closed.

REJECTConstant 
public static const REJECT:String = reject

The name of the NetServerEvent when the connection is rejected.