all groups > macromedia flash flash remoting > march 2005 >
You're in the

macromedia flash flash remoting

group:

Components and Remoting Responder


Components and Remoting Responder SmileyBlue
3/6/2005 11:02:47 AM
macromedia flash flash remoting: hello everyone,
i have a problem that i tried to solve it in many ways but still no luck,
i use a Button component ,and on ( click) it calls a function that will
connect to the Remoting service.
the problem is that the connection works fine, and on the NetDebugger there is
a connection and the method is invoked and works prefect, but the responder is
not working!!
and the Result function is not being invoked at all
here is the code

var FormOne:Service = new Service("http://localhost/flashservices/gateway",
null, "Forms", null, null);

_global.test = function()
{
var pc2:PendingCall = FormOne.getRecord();
pc2.responder = new RelayResponder(this,"getRecord_Result",
"getRecord_Fault");

function getRecord_Result(re:ResultEvent):Void {
trace("inside");
};

function getRecord_Fault(fe:FaultEvent):Void {};

};


and as you see, the code is simple and right, and this only happens with the
button components, i mean if i inserted a symbol button into the document
everything is fine, but when i use the Button component from the UI components
then the result ( and fault) function are not being invoked!! and i need to use
the component.

so...any ideas? if i didnt explain enough please tell me, coz i need to solve
this urgently
Re: Components and Remoting Responder Tom Coleman
3/10/2005 9:31:55 AM
[quoted text, click to view]

Hi SmileyBlue,

You could try using an event listener, and don't forget to give the
button component an instance name.

Look here:
<http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/js/html/wwhelp.htm>

HTH,
Re: Components and Remoting Responder SmileyBlue
3/10/2005 3:16:43 PM
AddThis Social Bookmark Button