开发者

showPermissionDialog with ExternalInterface (facebook/ flash)

开发者 https://www.devze.com 2022-12-23 23:24 出处:网络
I trying to pomp showPermissionDialog for allow the user to post something in a friend Wall. I have the flowing javascript code:

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

精彩评论

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