Packagevegas.net
Classpublic class ConnectionCode
InheritanceConnectionCode Inheritance Object

The enumeration of all codes notify in a Connection when this status is changed.



Public Constants
 ConstantDefined By
  CALL_BAD_VERSION : String = NetConnection.Call.BadVersion
[static] Packet encoded in an unidentified format.
ConnectionCode
  CALL_FAILED : String = NetConnection.Call.Failed
[static] The NetConnection.call method was not able to invoke the server-side method or command.
ConnectionCode
  CALL_PROHIBITED : String = NetConnection.Call.Prohibited
[static] An Action Message Format (AMF) operation is prevented for security reasons.
ConnectionCode
  CONNECT_CLOSED : String = NetConnection.Connect.Closed
[static] The connection was closed successfully.
ConnectionCode
  CONNECT_FAILED : String = NetConnection.Connect.Failed
[static] The connection attempt failed.
ConnectionCode
  CONNECT_INVALID_APP : String = NetConnection.Connect.InvalidApp
[static] The application name specified during connect is invalid.
ConnectionCode
  CONNECT_NETWORK_CHANGE : String = NetConnection.Connect.NetworkChange
[static] Flash Player has detected a network change, for example, a dropped wireless connection, a successful wireless connection,or a network cable loss.
ConnectionCode
  CONNECT_REJECTED : String = NetConnection.Connect.Rejected
[static] The connection attempt did not have permission to access the application.
ConnectionCode
  CONNECT_SHUTDOWN : String = NetConnection.Connect.AppShutdown
[static] The specified application is shutting down.
ConnectionCode
  CONNECT_SUCCESS : String = NetConnection.Connect.Success
[static] The connection attempt succeeded.
ConnectionCode
Constant Detail
CALL_BAD_VERSIONConstant
public static const CALL_BAD_VERSION:String = NetConnection.Call.BadVersion

Packet encoded in an unidentified format.

CALL_FAILEDConstant 
public static const CALL_FAILED:String = NetConnection.Call.Failed

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

CALL_PROHIBITEDConstant 
public static const CALL_PROHIBITED:String = NetConnection.Call.Prohibited

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:String = NetConnection.Connect.Closed

The connection was closed successfully.

CONNECT_FAILEDConstant 
public static const CONNECT_FAILED:String = NetConnection.Connect.Failed

The connection attempt failed.

CONNECT_INVALID_APPConstant 
public static const CONNECT_INVALID_APP:String = NetConnection.Connect.InvalidApp

The application name specified during connect is invalid.

CONNECT_NETWORK_CHANGEConstant 
public static const CONNECT_NETWORK_CHANGE:String = NetConnection.Connect.NetworkChange

Flash Player has detected a network change, for example, a dropped wireless connection, a successful wireless connection,or a network cable loss. Use this event to check for a network interface change. Don't use this event to implement your NetConnection reconnect logic. Use "NetConnection.Connect.Closed" to implement your NetConnection reconnect logic.

CONNECT_REJECTEDConstant 
public static const CONNECT_REJECTED:String = NetConnection.Connect.Rejected

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

CONNECT_SHUTDOWNConstant 
public static const CONNECT_SHUTDOWN:String = NetConnection.Connect.AppShutdown

The specified application is shutting down.

CONNECT_SUCCESSConstant 
public static const CONNECT_SUCCESS:String = NetConnection.Connect.Success

The connection attempt succeeded.