Packageasgard.net
Classpublic class NetServerStatus
ImplementsSerializable

Defines the enumeration of all NetServerConnection status codes.

Read the online documentation of the NetStatusEvent class to see the different code : NetStatusEvent documentation



Public Properties
 PropertyDefined by
  code : String
The code property.
NetServerStatus
  level : String
The level property.
NetServerStatus
Public Methods
 MethodDefined by
  
NetServerStatus(code:String, level:String)
Creates a new NetServerStatus instance.
NetServerStatus
  
contains(code:String):Boolean
[static] Indicates if the specified code expression is register in the NetServerStatus enumeration list.
NetServerStatus
  
equals(o:*):Boolean
Compares the specified object with this object for equality.
NetServerStatus
  
get(code:String):NetServerStatus
[static] Returns the specified code expression register in the NetServerStatus enumeration list.
NetServerStatus
  
toSource(indent:int = 0):String
Returns the source representation of this object.
NetServerStatus
  
toString():String
Returns the String representation of the object.
NetServerStatus
  
validate(o:*):Boolean
[static] Validate if the specified object is a valid status value.
NetServerStatus
  
valueOf():*
Returns the primitive value of this object.
NetServerStatus
Public Constants
 ConstantDefined by
  CALL_BAD_VERSION : NetServerStatus
[static] Packet encoded in an unidentified format.
NetServerStatus
  CALL_FAILED : NetServerStatus
[static] The NetConnection.call method was not able to invoke the server-side method or command.
NetServerStatus
  CALL_PROHIBITED : NetServerStatus
[static] An Action Message Format (AMF) operation is prevented for security reasons.
NetServerStatus
  CONNECT_CLOSED : NetServerStatus
[static] The connection was closed successfully.
NetServerStatus
  CONNECT_FAILED : NetServerStatus
[static] The connection attempt failed or the NetConnection.call method was not able to invoke the server-side method or command.
NetServerStatus
  CONNECT_INVALID : NetServerStatus
[static] The application name specified during connect is invalid.
NetServerStatus
  CONNECT_REJECTED : NetServerStatus
[static] The connection attempt did not have permission to access the application.
NetServerStatus
  CONNECT_SHUTDOWN : NetServerStatus
[static] The specified application is shutting down.
NetServerStatus
  CONNECT_SUCCESS : NetServerStatus
[static] The connection attempt succeeded.
NetServerStatus
Property detail
codeproperty
public var code:String

The code property.

levelproperty 
public var level:String

The level property.

Constructor detail
NetServerStatus()constructor
public function NetServerStatus(code:String, level:String)

Creates a new NetServerStatus instance.

Parameters
code:String — The code property.
 
level:String
Method detail
contains()method
public static function contains(code:String):Boolean

Indicates if the specified code expression is register in the NetServerStatus enumeration list.

Parameters
code:String

Returns
Booleantrue if the specified code expression is register in the NetServerStatus enumeration list.
equals()method 
public function equals(o:*):Boolean

Compares the specified object with this object for equality.

Parameters
o:*

Returns
Booleantrue if the the specified object is equal with this object.
get()method 
public static function get(code:String):NetServerStatus

Returns the specified code expression register in the NetServerStatus enumeration list.

Parameters
code:String

Returns
NetServerStatus
toSource()method 
public function toSource(indent:int = 0):String

Returns the source representation of this object.

Parameters
indent:int (default = 0)

Returns
String — the source representation of this object.
toString()method 
public function toString():String

Returns the String representation of the object.

Returns
String — the String representation of the object.
validate()method 
public static function validate(o:*):Boolean

Validate if the specified object is a valid status value.

Parameters
o:*

Returns
Booleantrue if the specified object is a valid status value.
valueOf()method 
public function valueOf():*

Returns the primitive value of this object.

Returns
* — the primitive value of this object.
Constant detail
CALL_BAD_VERSIONconstant
public static const CALL_BAD_VERSION:NetServerStatus

Packet encoded in an unidentified format.

CALL_FAILEDconstant 
public static const CALL_FAILED:NetServerStatus

The NetConnection.call method was not able to invoke the server-side method or command.

CALL_PROHIBITEDconstant 
public static const CALL_PROHIBITED:NetServerStatus

An Action Message Format (AMF) operation is prevented for security reasons. Either the AMF URL is not in the same domain as the file containing the code calling the NetConnection.call() method, or the AMF server does not have a policy file that trusts the domain of the the file containing the code calling the NetConnection.call() method.

CONNECT_CLOSEDconstant 
public static const CONNECT_CLOSED:NetServerStatus

The connection was closed successfully.

CONNECT_FAILEDconstant 
public static const CONNECT_FAILED:NetServerStatus

The connection attempt failed or the NetConnection.call method was not able to invoke the server-side method or command.

CONNECT_INVALIDconstant 
public static const CONNECT_INVALID:NetServerStatus

The application name specified during connect is invalid.

CONNECT_REJECTEDconstant 
public static const CONNECT_REJECTED:NetServerStatus

The connection attempt did not have permission to access the application.

CONNECT_SHUTDOWNconstant 
public static const CONNECT_SHUTDOWN:NetServerStatus

The specified application is shutting down.

CONNECT_SUCCESSconstant 
public static const CONNECT_SUCCESS:NetServerStatus

The connection attempt succeeded.