Seems like I am not able to fix my remoting code. Here is the actions panel


import flash.net.*;

var gateway:NetConnection = new NetConnection();

var responder:Responder=new Responder(onResult,onFault);



// name the default cf test server on this machine

gateway.connect("http://localhost/flashservices/gateway/");



// name of the cfc and the function

gateway.call("com.cfcs.testing.GetResults", responder);





function onResult(responds:Object):void {

	trace("cfc result"+":"+" "+responds.toString());

}



function onFault(responds:Object):void {

	//loop over the fault structure

	for (var i:String in responds) {

		trace( i + ":" + responds[i] );

	}

}

The file Testing.cfc(I have tested this cfc and it works perfect!


<cffunction name="getResults" access="remote" returntype="query">

   <cfquery name="qEmails" datasource="johnbarrett">

     SELECT *

     FROM testing

   </cfquery>

  <cfreturn qEmails>

</cffunction>

output

By |2009-04-10T02:37:50+00:00April 10th, 2009|