First of all, make sure you have the AS2 Remoting components for Flash 8 installed: http://www.adobe.com/products/flashremoting/downloads/components/
Once installed, you should have a look at the docs that come with it. When creating a Service instance, you can pass a 4th parameter, which is the reponder and will handle Result and Fault events There's no onStatus event with the AS2 version, it's now called onFault. You should look into the Responder and RelayResponder classes. Just have a look at the docs, there's plenty of examples there. http://livedocs.adobe.com/flashremoting/mx2004/ http://livedocs.adobe.com/flashremoting/mx2004/using_flash_remoting/index.htm http://livedocs.adobe.com/flashremoting/mx2004/actionscript_api_reference/frameset.html regards, Muzak ----- Original Message ----- From: "alfonso florio" <[EMAIL PROTECTED]> To: <flashcoders@chattyfig.figleaf.com> Sent: Thursday, May 24, 2007 11:22 AM Subject: [Flashcoders] upgrading AMFPHP code > Hi to all, > > i've tried to google to obtain a solution, but no way... > > how can I catch STATUS events generated by the remoting connector? > > with AS 1 remoting: > _root.conn = NetServices.createGatewayConnection(_root.globals.amfGateway); > _root.myService = _root.conn.getService("myservice", this); > _root.conn.onStatus = function(error) { > // code here > }; > > how should I do this within a class and with the actual AS2 syntax > > this.service = new Service(this.gatewayUrl, null, "myservice"); > > i've find a PATCH to AS classes, but I think It's not a great idea... maybe > there is a smarter way > > Thanks in advance > > Alfonso Florio > _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com