:confused; I am building my first dynamic site using FlashRemoting and ColdFusion and have the problem below: Flash ActionScript: //customerProxy is the instance name of RemotingConnector component. customerProxy.gatewayUrl="http://localhost:8500/flashservices/gateway"; customerProxy.serviceName="mysite.dbs.customer"; customerProxy.methodName="getCustomer"; customerProxy.params = "info@info.com"; //this is to search a customer who has email address info@info.com. customerProxy.trigger(); var oRsCustomerListener:Object = new Object(); oRsCustomerListener.result = function() { trace(customerProxy.results.length); } customerProxy.addEventListener("result", oRsCustomerListener); ColdFusion Component (customer.cfc): <cfcomponent> <cffunction name="getCustomer" access="remote" returntype="query"> <cfargument name="theEmail" required="true" type="string"> <cfquery name="qGetCustomer" datasource="myDataSource"> SELECT * FROM customer WHERE email = #Arguments.theEmail# </cfquery> <cfreturn qGetCustomer> </cffunction> Did I miss something?
Try something like this to pass the parameter this._parent.myReceiveWebServiceConnector.params = ['info@info.com'];
Did the assigning of the params property as sixlead suggested work? I am trying to do something similar with a remotingConnector and I have had no luck.
Don't see what you're looking for? Try a search.
|