I am using the following function for an onKeyUp event. I don't get anything,
results, an error, nothing. When I mess up the cfc name I still don't get an
error. The same code works just fine in another application. The only thing
that has changed is the name of the cfc and method. When I don't comment out
the alert('Joe'), it fires on every onKeyUp. It looks like the remoting code is
being ignored.
Any ideas of what could be wrong?



function getMyRemoting(){
//start remoting
//create connection. Should be installed by default with CFMX7 with correct
path
var connection:mx.remoting.Connection =
mx.remoting.NetServices.createGatewayConnection("h ttp://#CGI.http_host#/flashser
vices/gateway/");

//declare service
var myService:mx.remoting.NetServiceProxy;

// put the controls in scope to avoid calling _root
var searchResults = searchResults;
var searchData = searchData;

// Create the object to handle the response
var responseHandler = {};

// function that receives the response
responseHandler.onResult = function( results:Object ):Void {
// when results are back we show the data received
searchResults.dataProvider = results;
}

// function that receives any error in call
responseHandler.onStatus = function ( stat:Object ):Void{
//if there is an error show the alert
alert("Error while calling cfc: " + stat.description);
}

//get the Service. First parameter is path to component and
//the second is to the object that will handle the response
myService = connection.getService("Phonebook.CFC.Phonedata",
responseHandler );

<!--- alert('joe'); --->

//make the actual call
myService.getNetworkUsers();

<!--- //end remoting --->
}