Name
NetDebugConfig Class
Synopsis
myNetDebugConfigObject.methodName(params)
myNetDebugConfigObject.propertyName
Methods
- getDebug( )
Returns the current state of debugging.
- setDebug( )
Allows you to set the state of debugging.
Properties
-
app_server
Flash Remoting events that occur on the application server or in the Flash Gateway on the server.
-
client
Flash Remoting activity from the client.
-
flashcomm_server/realtime_server
Flash Communication Server MX events.
Description
The NetDebugConfig object is included when you include the NetDebug.as file in your Flash Remoting application. It holds the properties of your current NetConnection debugger configuration and also allows you to turn NetConnection debugging on and off for ActionScript objects. To use the NetDebugConfig object for your specific connection, retrieve it with the NetConnection.getDebugConfig( ) method:
var myConfigObject = myConnection.getDebugConfig( );
You can then call methods on the NetDebugConfig
object to turn debugging on and off programmatically and set the
status of reporting for individual events. The events are associated
with one of the properties of the object
(app_server
, client
, or
flashcomm_server/realtime_server
), each of which
are objects in their own right. Events for which debugging is active
are logged in the NetConnection Debugger panel. The full listing of
events is shown in Table 15-2.
Event |
Default |
Description |
app_server.amf |
false |
Server ... |
Get Flash Remoting: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.