all groups > macromedia flash flash remoting > june 2004 >
You're in the

macromedia flash flash remoting

group:

More AS 2.0 help


More AS 2.0 help Tmac
6/22/2004 4:31:29 PM
macromedia flash flash remoting:
I finally got my button to work as I add a trace function within the
function call by the addEventListener

submit_pb.addEventListener("click", getProdResults);

and within the getProdResults function I have what I believe a remote call

function getProdResults():Void
{
var search_pc:PendingCall =
searchServ.getSearchResult(Formatters.formatNumber(String(vechicle_cb.value)
),Formatters.formatNumber(String(engine_cb.value)),Formatters.formatNumber(S
tring(product_cb.value)));
search_pc.responder = new RelayResponder(this, "onSearchData",
"onSearchDataFault");
trace("button was clicked");
}

when I click the button the trace function fires but nothing is happening in
the NetConnection DeBugger. No calls to the service are made. Hopefully
someone can see from what I've provided what I'm doing wrong. Thanks.

Re: More AS 2.0 help Tmac
6/24/2004 8:31:57 AM
My problem turned out to be a scope problem. I had to change to
addEventListener to listen for an object so I changed my function to click()
instead of prodResults() and I was in business. I'm not sure which of the
tutorials you are talking about, if you are talking about the Trio motors
one then add this to the ServiceOrders() function

mx.remoting.debug.NetDebug.initialize();

and the Net Debugger should work.

[quoted text, click to view]

Re: More AS 2.0 help Jens Hauser
6/24/2004 12:42:42 PM
I had the same problem with the netdebugger when I followed the new tutorial
at MM. The remote call worked but i couldn´t see anything in the debugger
window. I am not sure i workes.





Jens



"Tmac" <tmc7425@comcast.net> skrev i meddelandet
news:cba4ur$agc$1@forums.macromedia.com...
[quoted text, click to view]

Re: More AS 2.0 help Jens Hauser
6/25/2004 11:31:21 AM
Yes, that´s the tutorial i am talking about. Sorry about missing to state
that. Thank You I will try t import the lines.


Jens

"Tmac" <tmc7425@comcast.net> skrev i meddelandet
news:cbehjv$qk3$1@forums.macromedia.com...
[quoted text, click to view]

AddThis Social Bookmark Button