Remoting Database Troubles

I have been stuggling with getting remoting working for a database result in AS 3 and ColdFusion. I am hoping that somebody can help me out with this.


var gateway:NetConnection = new NetConnection();

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

// name the default cf test server on this machine


// name of the cfc and the function"com.cfcs.names.getnames", responder);

/*without the for loop in onResult (trace window [Object][Object])

with the foor loop nothing is traceed, but no errors


function onResult(responds:Object):void {

	for(var i=0; i<responds; i++){




function onFault(responds:Object):void {

	//loop over the fault structure

	for (var i:String in responds) {

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



The cfc


        <cffunction name="getNames" acces="remote" returntype="query" output="yes">

                <cfquery datasource="johnny_flash" name="allNames">

                    SELECT Names, Comments

                    FROM Titles


            <cfreturn allNames>



Leave a Reply

Your email address will not be published. Required fields are marked *