OK, cheers Spike.
Giles Roadnight http://giles.roadnight.name -----Original Message----- From: Spike [mailto:[EMAIL PROTECTED]] Sent: 16 December 2002 11:57 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] Flash Remoting Net Connection Debugger If you are dealing with multiple movie clips, you might be better working with a responder object rather than returning the result to 'this' when you make the function calls. Something like this: userService= gatewayConnnection.getService("mycomponent"); responder = new Object(); responder.onResult = function(result) { //generic code to handle results goes here } responder.onStatus = function(result) { //generic code to handle status changes goes here } You would then pass the responder as the first argument to the remote function call: userService.getUsers(responder); The gateway connection code checks if the first argument you pass to a remote function call is an object with an onResult function attached to it. If so, it passes the result to that. You could create your own object in the movie clip where you are calling the remote function, and use that to handle the results. Spike Stephen Milligan Team Macromedia - ColdFusion Co-author 'Reality Macromedia ColdFusion MX: Intranets and Content Management' http://spikefu.blogspot.com > -----Original Message----- > From: Giles Roadnight [mailto:[EMAIL PROTECTED]] > Sent: 16 December 2002 12:12 > To: [EMAIL PROTECTED] > Subject: RE: [ cf-dev ] Flash Remoting Net Connection Debugger > > > OK, I have worked out what the problem is here. The service > gateway was opened in another movie clip so the result of the > server call is sent to that movie clip, not the movie clip > that I initiated the call in. I could write a function in the > movie clip that creates the gateway to pass the result to the > movie clip that made the call but this is a little untidy. > > Is there a way when I make the call to pass the result to the > movie clip that makes the call or do I have to make another > connection to the server to make this work? If I do have to > make another connection to the server is there anything wrong > with this? > > Thanks > > > Giles Roadnight > http://giles.roadnight.name > > > -----Original Message----- > From: Giles Roadnight [mailto:[EMAIL PROTECTED]] > Sent: 16 December 2002 11:06 > To: [EMAIL PROTECTED] > Subject: RE: [ cf-dev ] Flash Remoting Net Connection Debugger > > Hi Guys > > For some reason when I use flash remoting to run a particular > function on the server I always get a debug message coming up > telling me that a response was received from the server: > > NetServices info 1: function_Result was received from server: > [object Object] > > I can't se anything in the code that would make this happen. > It doesn't happen for other functions. > > Can anyone tell me why? > > Thanks > > Giles Roadnight > http://giles.roadnight.name > > > > > -- > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] For human help, e-mail: > [EMAIL PROTECTED] > > > > -- > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] For human help, e-mail: > [EMAIL PROTECTED] > > > -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
