| Package | vegas.net |
| Class | public class NetServerGateway |
| Inheritance | NetServerGateway Object |
See also
| Property | Defined By | ||
|---|---|---|---|
| connection : NetServerConnection
Returns the NetConnection reference of this instance. | NetServerGateway | ||
| controller : FrontController
Sets the NetServerGateway controller reference. | NetServerGateway | ||
| Method | Defined By | ||
|---|---|---|---|
Creates a new NetServerGateway instance. | NetServerGateway | ||
add(type:String, listener:*):void
Adds a new entry into the Gateway controller. | NetServerGateway | ||
contains(eventName:String):Boolean
Returns true if the eventName is registered in the Gateway Controller. | NetServerGateway | ||
Inits the NetServerGateway controller reference in the constructor of this instance. | NetServerGateway | ||
receiveSharedEvent(e:*):void
Invoked when the NetServerConnection receive from the server a shared event. | NetServerGateway | ||
remove(type:String):void
Remove an entry into the Gateway controller. | NetServerGateway | ||
| connection | property |
connection:NetServerConnectionReturns the NetConnection reference of this instance.
public function get connection():NetServerConnection public function set connection(value:NetServerConnection):void| controller | property |
controller:FrontControllerSets the NetServerGateway controller reference.
public function get controller():FrontController public function set controller(value:FrontController):void| NetServerGateway | () | Constructor |
public function NetServerGateway(connection:NetServerConnection, controller:FrontController)Creates a new NetServerGateway instance.
Parametersconnection:NetServerConnection | |
controller:FrontController |
| add | () | method |
public function add(type:String, listener:*):voidAdds a new entry into the Gateway controller.
Parameters
type:String — The type of the event to register in the controller.
| |
listener:* — The listener reference to register.
|
| contains | () | method |
public function contains(eventName:String):Boolean
Returns true if the eventName is registered in the Gateway Controller.
Parameters
eventName:String — the name of the event type in the internal controller.
|
Boolean |
| initController | () | method |
public function initController():FrontControllerInits the NetServerGateway controller reference in the constructor of this instance. Overrides this method to customize initial Gateway controller.
ReturnsFrontController |
| receiveSharedEvent | () | method |
public function receiveSharedEvent(e:*):voidInvoked when the NetServerConnection receive from the server a shared event.
Parameters
e:* |
| remove | () | method |
public function remove(type:String):voidRemove an entry into the Gateway controller.
Parameters
type:String — The type to unregister.
|