hudeyong926 发表于 2013-1-28 09:17:23

Error #2048: 安全沙箱冲突:...swf 不能从 ..gateway.php 加载数据。 url: '..gateway.php''

1.  127.0.0.1 不等于 localhost,endpoint要么设127.0.0.1,浏览器访问也用127.0.0.1,endpoint要么设localhost,浏览器访问用localhost
 
解决:检查服务器端的函数是否正确。
错误代码:
faultCode:Client.Error.DeliveryInDoubt
faultString:'Channel disconnected'
faultDetail:'Channel disconnected before an acknowledgement wasreceived'
我是这样解决的:
我发现flex调用php的方法已经执行 但是返回的处理函数没有执行(你可以试着在返回的处理函数弹出语句)。
如果没有弹出,说明你的php的函数有问题。我就是检查了下我的服务器端php调用的函数,一个函数中的语句或函数名写错了导致的此错误。
函数中不要有echo $sql;这样的语句。有的话也会报这种错
 
解决:检查调用服务器函数后处理结果的函数,是否每个语句都运行正常。
错误代码:
faultString: error
faultDetail: NetConnection.Call.Failed: HTTP: Failed
faultCode: Channel.Call.Failed
我是这样解决的:
我检查了处理结果的函数:
  在函数中有个结果的类型转换:我使用的
public function fill(obj:Object):void 
  {
    for(var i:*in obj)
   this=obj;
  }
改为
public function fill(obj:Object):void
  {this.movieid=obj.movieid;
   this.title=obj.title;
   this.source=obj.source;
   this.thumb=obj.thumb;
   this.width=obj.width;
   this.height=obj.height;
    //for(vari:* in obj)
   //this=obj;
  }
导致这样的原因可能是返回的结果的索引和flex的vo的索引对应不一致引起的。
 
页: [1]
查看完整版本: Error #2048: 安全沙箱冲突:...swf 不能从 ..gateway.php 加载数据。 url: '..gateway.php''