Using The Netdebug.initialize() Method; Using The Netdebug.trace() Method; Using Connection-Specific Debugging Methods - MACROMEDIA FLASH REMOTING MX-USING FLASH REMOTING FOR FLASH MX 2004 ACTIONSCRIPT 2.0 Use Manual

Using flash remoting for flash mx 2004 actionscript 2.0
Table of Contents

Advertisement

Using the Netdebug.initialize() method

The
NetDebug.initialize()
call this method prior to creating a connection or using any debugging operations, and typically
before any ActionScript is executed in the SWF file. This method returns the Boolean value
if it initializes debug support successfully. Otherwise, it returns a value of
statements, for example, initialize debug support for Flash Remoting before creating a connection
to a remote service. The example connects to the CustomerData service used by the
CustomerInfoExampleAPI sample application:
import mx.remoting.Service;
import mx.services.Log;
import mx.remoting.debug.NetDebug;
function CustomerDisplayForm() {
NetDebug.initialize();
super();
var custService:Service = new Service(
"http://examples.macromedia.com/flashservices/gateway/",
new Log(Log.DEBUG,"CustomerDisplayApp"),
"petmarket.api.catalogservice",
null,
null);
}
CustomerDisplayForm();
For more information on the
Flash Remoting ActionScript Dictionary in Help. For information about the
CustomerInfoExampleAPI sample application, see
in the CustomerInfoExampleAPI application" on page

Using the NetDebug.trace() method

The
NetDebug.trace()
example, the following
created myService." in the NetConnection Debugger:
NetDebug.trace("I just created myService.");
The argument to the
object. For example, you can use the
variables, as in the following code:
NetDebug.trace({arg1value:arg1, arg2value:arg2});

Using connection-specific debugging methods

If your application uses multiple connections, you can use the debugging-related methods of each
Connection object to debug the individual connections.
The
setDebugId()
output for events associated with the specific Connection object; for example:
gatewayConnection.setDebugId("Gateway Connection");
method initializes debug support for Flash Remoting. You must
NetDebug.initialize()
method displays a trace message in the NetConnection Debugger. For
NetDebug.trace()
.
method is not limited to a string. It can be a Flash
NetDebug
trace()
NetDebug.trace()
method creates an ID that is displayed in the NetConnection Debugger
method, see the NetDebug class in the
"Using the Flash Remoting ActionScript API
47.
method displays a trace message with the text "I just
method to report the values of multiple
Using the NetConnection Debugger in ActionScript
true
. The following
false
95

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH REMOTING MX-USING FLASH REMOTING FOR FLASH MX 2004 ACTIONSCRIPT 2.0 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash remoting mx

Table of Contents