使用httpservice调用一个需要参数的PHP函数
问题描述:
如果您查看下面的链接,有一些PHP代码通过HttpService由Flex mxml调用。 PHP代码具有函数,但mxml代码不调用特定函数。我如何使用httpservice来调用特定的函数(在我的情况下,需要参数)?使用httpservice调用一个需要参数的PHP函数
http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_2.html
感谢
答
我想你可能会寻找RPC而不是HTTP调用。您链接的示例使用HTTPService。使用PHP查看RemoteObject。我怀疑你将不得不进入处理AMF的服务器上的某一层。 Here's an article。
其实这可能对我有用 - http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=dataservices_099_09.html – dotnetdev 2009-02-19 23:04:36