| Package | vegas.events |
| Class | public class NetServerEvent |
| Inheritance | NetServerEvent BasicEvent flash.events.Event |
| Property | Defined By | ||
|---|---|---|---|
| connection : NetServerConnection
Indicates the NetServerConnection target of this event. | NetServerEvent | ||
![]() | context : *
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 | ||
![]() | target : Object [override]
Indicates the custom event target. | BasicEvent | |
![]() | timeStamp : uint [read-only]
Indicates the timestamp of the event. | BasicEvent | |
![]() | type : String [override]
Returns the type of event. | BasicEvent | |
| Method | Defined 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 | ||
![]() | dispatch(channel:String = null):void
Dispatch the event with the global event flow. | BasicEvent | |
![]() | toString():String [override]
Returns the string representation of this event. | BasicEvent | |
| Constant | Defined 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 | ||
| connection | property |
connection:NetServerConnectionIndicates the NetServerConnection target of this event.
public function get connection():NetServerConnection public function set connection(value:NetServerConnection):void| info | property |
info:*Indicates the NetServerInfo reference of this event.
public function get info():* public function set info(value:any):void| status | property |
status:NetServerStatusIndicates the NetServerStatus reference of this event.
public function get status():NetServerStatus public function set status(value:NetServerStatus):void| NetServerEvent | () | Constructor |
public function NetServerEvent(type:String, connection:NetServerConnection = null, status:NetServerStatus = null, info:* = null)Creates a new NetServerEvent instance.
Parameterstype: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).
|
| clone | () | method |
override public function clone():EventReturns a shallow copy of this object.
ReturnsEvent — a shallow copy of this object.
|
| ACCEPT | Constant |
public static const ACCEPT:String = acceptThe name of the NetServerEvent when the connection is accepted.
| CLOSE | Constant |
public static const CLOSE:String = closeThe name of the NetServerEvent when the connection is closed.
| REJECT | Constant |
public static const REJECT:String = rejectThe name of the NetServerEvent when the connection is rejected.