macromedia.coldfusion.flash_integration
[Top] [All Lists]

Re: CFGRID refresh and Flash Remoting Services

Subject: Re: CFGRID refresh and Flash Remoting Services
From: "ws_richland" <webforumsuser@xxxxxxxxxxxxxx>
Date: Thu, 6 Sep 2007 21:46:41 +0000 (UTC)
Newsgroups: macromedia.coldfusion.flash_integration

Guess you found it by now, but here is a method that will return a response 
from a CFC if the connection fails:

        var responseHandler = {};

        //put the controls in scope to avoid calling _root
        var contactList = contactList;
        
        responseHandler.onResult = function( results: Object ):Void {
                //when results are back, populate the cfgrid
                contactList.dataProvider = results;
        }
    
        responseHandler.onStatus  = function( stat: Object ):Void {
                //if there is any error, show an alert
                alert("Error while calling cfc:" + stat.description);
        }
        
        //get service
        myService = connection.getService("flashRemotingResponder", 
responseHandler );
        //make call
        myService.getMembers();


<Prev in Thread] Current Thread [Next in Thread>
  • Re: CFGRID refresh and Flash Remoting Services, ws_richland <=