从 Flash CS5 向 Zend_AMF 服务发送数据时,var 为空
在使用 Flex 和 Zend_AMF 后,我现在正在使用 Flash CS5 和 Zend_AMF 开发另一个项目(小游戏)。 只要我管理服务中的所有参数,检索数据就可以完美进行。 我正在使用此代码从 Servie 获取数据:
nc.connect("http://localhost/project/public/service/gateway/amf");
var res2:Responder = new Responder(returnDataList,returnError);
nc.call("Service_GatewayService.getData",res2);
但现在我想获取取决于我随服务发送的 ID 的数据。我一直在测试出了什么问题,我注意到我的“发送”变量在 Zend 中始终为空。 我正在使用 Zend 文档中的代码,如下所示。我想发送“1”作为我的 ID。 我的服务中的功能运行良好,不存在问题。我认为他并没有真正发送变量。这是我使用的代码
nc.connect("http://localhost/project/public/service/gateway/amf");
var res2:Responder = new Responder(returnDataList,returnError);
var param:int = 2;
nc.call("Service_GatewayService.getDataById",res2, param);
有人知道这个问题的解决方案吗...?
提前致谢
After working with Flex and Zend_AMF i'm now working for another project (little game) with Flash CS5 and Zend_AMF.
Retrieving data goes perfectly as long as i manage all the parameters in the service.
I'm using this code to get data from Servie:
nc.connect("http://localhost/project/public/service/gateway/amf");
var res2:Responder = new Responder(returnDataList,returnError);
nc.call("Service_GatewayService.getData",res2);
But now i want to get data depended on an ID i send with the service. I've been testing what goes wrong and i've noticed that my 'sended' variabel always is null in Zend.
I'm using the code on the Zend documentation like this. I want to send '1' as my id.
The function in my service is working fine, the problem isn't there. I think he doesn't really send the variabel. This is the code i use
nc.connect("http://localhost/project/public/service/gateway/amf");
var res2:Responder = new Responder(returnDataList,returnError);
var param:int = 2;
nc.call("Service_GatewayService.getDataById",res2, param);
Someone know a solution for this...?
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论