开发者

showPermissionDialog with ExternalInterface (facebook/ flash)

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("publ开发者_开发知识库ish_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


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

params.allowScriptAccess="always";

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜