Packagevegas.net
Classpublic class NetServerGateway
InheritanceNetServerGateway Inheritance Object

The NetSeverGateway create a gateway between the Flash client and the FMS server.

See also

NetServerConnection


Public Properties
 PropertyDefined By
  connection : NetServerConnection
Returns the NetConnection reference of this instance.
NetServerGateway
  controller : FrontController
Sets the NetServerGateway controller reference.
NetServerGateway
Public Methods
 MethodDefined 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
  
Invoked when the NetServerConnection receive from the server a shared event.
NetServerGateway
  
remove(type:String):void
Remove an entry into the Gateway controller.
NetServerGateway
Property Detail
connectionproperty
connection:NetServerConnection

Returns the NetConnection reference of this instance.


Implementation
    public function get connection():NetServerConnection
    public function set connection(value:NetServerConnection):void
controllerproperty 
controller:FrontController

Sets the NetServerGateway controller reference.


Implementation
    public function get controller():FrontController
    public function set controller(value:FrontController):void
Constructor Detail
NetServerGateway()Constructor
public function NetServerGateway(connection:NetServerConnection, controller:FrontController)

Creates a new NetServerGateway instance.

Parameters
connection:NetServerConnection
 
controller:FrontController
Method Detail
add()method
public function add(type:String, listener:*):void

Adds 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.

Returns
Boolean
initController()method 
public function initController():FrontController

Inits the NetServerGateway controller reference in the constructor of this instance. Overrides this method to customize initial Gateway controller.

Returns
FrontController
receiveSharedEvent()method 
public function receiveSharedEvent(e:*):void

Invoked when the NetServerConnection receive from the server a shared event.

Parameters

e:*

remove()method 
public function remove(type:String):void

Remove an entry into the Gateway controller.

Parameters

type:String — The type to unregister.