带外部接口的 showPermissionDialog (facebook/flash)

发布于 2024-08-26 06:40:54 字数 564 浏览 2 评论 0原文

我尝试使用 showPermissionDialog 来允许用户在朋友墙上发布内容。

我有流动的 javascript 代码:

  <script type="text/javascript">
    function showStreamPermissions() {
    FB.Connect.showPermissionDialog("publish_stream", doResult);    
     }
 </script>

在可能的 as3 类文件上,我有这段代码来调用 showStreamPermissions:

protected function showPermissionDialog(e:MouseEvent):void {

  ExternalInterface.call("showStreamPermissions");

  }

但是当我单击按钮显示 Premonition Dialog 时,没有任何反应?

有谁知道为什么?

谢谢。

MB

I trying to pomp showPermissionDialog for allow the user to post something in a friend Wall.

I have the flowing javascript code:

  <script type="text/javascript">
    function showStreamPermissions() {
    FB.Connect.showPermissionDialog("publish_stream", doResult);    
     }
 </script>

On may as3 class file i have this code to call showStreamPermissions:

protected function showPermissionDialog(e:MouseEvent):void {

  ExternalInterface.call("showStreamPermissions");

  }

But when i click the button to show Premonition Dialog , nothing happens?

Does anyone know why ?

Thanks.

MB

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

吾性傲以野 2024-09-02 06:40:54

我想出了什么问题。有必要允许脚本访问

params.allowScriptAccess="always";

I figure what was the problem. It´s necessary to allow script access

params.allowScriptAccess="always";

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文