all groups > macromedia flash flash remoting > january 2006 >
You're in the

macromedia flash flash remoting

group:

flash 8 and net connection debugger


flash 8 and net connection debugger fmdano
1/4/2006 4:25:23 PM
macromedia flash flash remoting:
so, where is the net connection debugger?
Can flash remoting i used with mx2004 still available when using the flash 8
program? i am saving the file as a mx2004 file, but it cannot find:

#include "NetServices.as"
#include "NetDebug.as"

because of this and not being able to find the net connection debugger, i
cannot figure out what is wrong with my program

thanks

dan
Re: flash 8 and net connection debugger jirgn
1/5/2006 12:01:32 AM
fmdano schrieb:
[quoted text, click to view]

hallo fmdano,

id did not use the new flash 8, but since mx2004 the
#include 'NetServices'
#include 'NetDebug.as'
are deprecated. With the new 2004 Remoting-Classes these recources are
wrapped in classes in the mx.remoting.debug package.
An easy sample class using amfPHP follows:

import mx.remoting.debug.*;

class TestService {

private var service:Service;
private var GATEWAY_URL:String =
"http://localhost/flash_php_test/gateway.php";

public function Test() {
//here is the init for the netdebugger
Netdebug.initialize();{

//init the service
service = new Service(GATEWAY_URL, new Log(), "Test", null, null);
}

//simple servicecall
public function helloWorld():Void {
var helloPc:PendingCall = this.service.helloWorld();
//set the handlers for
helloPc.responder = new RelayResponder(this, "onCallData", "onCallFault");
}

//handler when functioncall worked well
private function onCallData( re:ResultEvent ):Void {
trace("worked well");
}

//handler when functioncall did not work
private function onCallFault( fault:FaultEvent ):Void {
trace("fault");
}
}

hope this helps

jirgn

Re: flash 8 and net connection debugger Call Me Mad
2/4/2006 2:59:34 AM
You can run the debugger externally from flash by using C:\Program
Files\Macromedia\Flash 8\en\First Run\WindowSWF
you can also run the debugger internally using the menu item Window - other
panels - NetConnection Debugger
Re: flash 8 and net connection debugger jedders
2/7/2006 7:34:17 PM
If you are having issues with loading the NetConnection Debugger see my posts
on this link below. It explains how to do a custom remoting install from 2004
to 8.


http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=250&thre
adid=1050908&forumid=15

AddThis Social Bookmark Button