hi,
sorry, i'm not spaking english well.
my question is flashcomm and cfc remoting problem.
result (why return value is object? undefined? i'm not understand)
--------------------------------------------------------
onAppStop Called, returning false
***** running netserviceswrapper
***** running NetServices
***** running recordset
***** running RsDataProviderClass
***** running recordset
***** running RsDataProviderClass
onAppStart called
getData method call
----- RecordSetType :object
----- getColumnNames :undefined
----- isFullyPopulated :true
----- getItemAt :undefined
----- getNumberAvailable :0
----- getLength :0
----- recordFirst :undefined
----- recordLast :undefined
getData method call
getData method call
getData method call
'
'
getData method call
main.asc
----------------------------
load( "NetServices.asc" );
application.onAppStart = function()
{
trace("onAppStart called");
NetServices.setDefaultGatewayUrl("http://localhost/flashservices/gateway");
gatewayConn = NetServices.createGatewayConnection();
getDatas_cfc = gatewayConn.getService("himton.cfc.sugo",this());
this.so = SharedObject.get("voiceList_sugo",true);
this.interval = setInterval(getData,2000);
var resultVar_rs = null;
}
application.onAppStop = function()
{
trace("onAppStop Called, returning false");
return false;
}
function getData()
{
trace("getData method call");
getDatas_cfc.SvoiceL_sugo();
}
application.SvoiceL_sugo_Result = function(result_rs){
trace("----- RecordSetType :"+typeof(result_rs));
trace("----- getNumberAvailable :"+result_rs.getNumberAvailable( ));
trace("----- getColumnNames :"+result_rs.getColumnNames( ));
trace("----- isFullyPopulated :"+result_rs.isFullyPopulated( ));
resultVar_rs = result_rs.getLength( );
trace("----- getLength :"+resultVar_rs);
var myRecord = result_rs.getItemAt(0);
trace("----- getItemAt :"+myRecord);
var tempFirst = result_rs.First;
trace("----- recordFirst :"+tempFirst);
var tempLast = result_rs.Last;
trace("----- recordLast :"+tempLast);
}
wwwroot/himton/cfc/sugo.cfc
--------------------------------------------------------
<cfcomponent>
<cffunction name="SvoiceL_sugo" access="remote" returntype="query">
<cfquery name="voiceList" datasource="cfmcmm">
SELECT idx FROM cfUsers
</cfquery>
<cfreturn voiceList />
</cffunction>
</cfcomponent>
db Table
--------------------------------------------------------
idx , name, email, addrs (all varchar)
------------------------ Yahoo! Groups Sponsor --------------------~-->
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/u8TY5A/tzNLAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~->
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/