AMF 调用与 Javascript 调用 Facebook
我有一个可以在 Facebook 上运行的 Flash 应用程序。我想知道目前我面前有两个选择,要么进行 javascript 调用,这将进行 AJAX 调用并将数据返回到 flash,要么进行直接 AMFPHP 调用并将数据获取到 flash。
哪个会更快一些?更重要的是更好的方法?
I have a flash application which would be on Facebook . I was wondering currently I have two options in front of me either make javascript calls which will make AJAX calls and return the data to flash or make direct AMFPHP calls and get data into flash.
Which would be more faster? more importantly a better approach?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
amfphp 非常紧凑,“传输中”可能比 ajax 调用更快,它还可以节省您与 javascript 的往返路程。
什么是更好的选择实际上取决于您更喜欢什么。
amfphp is very compact and will likely be faster "in transit" than ajax calls, it'll also save you the round trip to javascript.
What is the better choice really depends on what you're more comfortable with.