-----------------------------------------------------------------------falsh代码:
stop();
//-------------------------------------------------------------
import mx.remoting.Service;
//导入Service类
import mx.rpc.FaultEvent;
//导入FaultEvent类
import mx.remoting.PendingCall;
//导入PendingCall类
import mx.rpc.ResultEvent;
//导入ResultEvent类
import mx.rpc.RelayResponder;
//导入RelayResponder类
import mx.remoting.debug.NetDebug;
//import mx.remoting.debug.NetDebug;
//NetDebug.initialize();
//导入remoting.debug类并初始化
//或者两行脚本并成一行,使用下面的脚本
mx.remoting.debug.NetDebug.initialize();
var gateway="http://localhost:8500/flashserivces/gateway/3jk/firstApp/helloWorld.cfm"
var myService:Service = new Service(gateway, null, "3JK.firstApp", null, null);
//连接到远程服务
var pc

endingCall = myService.helloWorld();
//调用远程服务方法
pc.responder = new RelayResponder(this, "getData_Result", "getData_Fault"

;
//使用responder定义返回的结果对象或者出错对象
trace("这时,信息还未返回"

;
function getData_Result(re:ResultEvent):Void {
//接收结果
trace(re.result);
}
function getData_Fault(fe:FaultEvent):Void {
//接收错误
trace("接收到错误"

;
}

-----------------------------------------------------------------------coldfusion代码:
<cfset flash.result = "Flash Remoting MX for ColdFusion" >

------------------------------------------------------------------------flash 输出:
这时,信息还未返回
接收到错误

-------------------------------------------------------------------------
以前在flash2004mx中成功过,但现在不知道什么不行了
新手也不是很明白希望高手不吝赐教谢谢

-------------------------------------------------------------------------
可能是
gateway="http://localhost:8500/flashserivces/gateway/3jk/firstApp/helloWorld.cfm"
var myService:Service = new Service(gateway, null, "3JK.firstApp", null, null);
这里有问题,但不是很明白应该怎么改
书上的例子
gateway="http://localhost:8500/flashserivces/gateway/"
var myService:Service = new Service(gateway, null, "3JK.firstApp", null, null)
---------------------------------------------------------------------------------------------
再次感谢!路过的都是好心人啊

(可以+我qq:158965935)