Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Remoting / December 2007



Tip: Looking for answers? Try searching our database.

Responder Not Responding

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MrDecisive - 13 Dec 2007 11:16 GMT
Hi All

  I cant figure this out at all. I'm trying to call a remoting service from
within a button onRelease function but it doesn't do what I'm expecting. The
service gets called and the result set is returned because I can see it in the
NetConnection debugger but the result handler function isn't being called??? If
I take the code and put it outside the button onRelease function (on the first
frame) then the result handler is called as expected? I've tried putting all
the code in the button and all the code out of the button, I've tried putting
some of the code inthe button and some out of the button but it still won't
call the result handler. Can anyone help??? other people must be doing a
similar thing and I'd love to know how you do it. All I want is a button that
when clicked calls my getAllRows function on the server and then uses the
result set to populate a data grid.

Like I say it works automatically if I put it in first frame of the movie but
I want to control it with a button.......Help?
dsdsdsdsd - 13 Dec 2007 15:09 GMT
see if you reference 'this' inside the

new RelayResponder( this , "getDataResult" , "getDataFault" );

if this line of code is located within the button handler, then 'this' refers
to the button; but more than likely your result methods are located on the
_root;

I hope this helps;

dsdsdsdsd
MrDecisive - 13 Dec 2007 16:17 GMT
Hi dsdsdsd,

         I've figured it out now thanks but you are right that is how I was
doing it but I did try to use _root. to prepend the handler functions but that
didn't work. Anyway in the end I declared a service and a relay responder (with
handlers) on the root of the first frame and then made the service call from
within the button onRelease function where I also assigned the service call
responder to be the one I configured earlier.

Thanks again for your help.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.