闪存安全设置面板 - 监听close事件? [英] Flash security settings panel - Listening for close event?

查看:202
本文介绍了闪存安全设置面板 - 监听close事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用Flash与麦克风或摄像头,系统将提示用户允许访问这些设备。这是通过内置的安全设置面板完成。

When using Flash with a microphone or camera, the user is prompted to allow access to those devices. This is done through the built in security settings panel.

有没有一种方法是由一个事件处理程序,当用户点击上的安全设置面板的关闭按钮通知?这似乎并不可能......

Is there a way to be notified by an event handler when the user clicks on the close button of the security settings panel? This does not seem to be possible...

有关麦克风,这是可能的,当用户改变在安全面板中设置接收状态事件,但这一事件被触发,而用户仍可以在面板打开。

For the microphone, it is possible to receive a status event when the user changes the settings in the security panel, but this event is triggered while the user still has the panel open.

推荐答案

我试图寻找一个解决方案时,无意中发现了这一点。

I stumbled on this when attempting to search for a solution.

<一个href="https://bugs.adobe.com/jira/browse/FP-41?focusedCommentId=187534&page=com.atlassian.jira.plugin.system.issuetabpanels%3acomment-tabpanel#action_187534">Flash与解决方法播放的bug报告

我没有测试过的解决办法,但它的的还是工作?祝你好运。

I haven't tested the workaround, but it should still work? Good luck.

修改

对于任何人谁不能/不会访问的Adobe bug跟踪系统,这里是原帖由菲利普Piernot解决方法:

For anyone who can't/won't access the Adobe bug tracker, here is the workaround originally posted by Philippe Piernot:

var closed:Boolean = true;
var dummy:BitmapData;
dummy = new BitmapData(1, 1);

try
{
    // Try to capture the stage: triggers a Security error when the settings dialog box is open
    dummy.draw(stage);
}
catch (error:Error)
{
    closed = false;
}

dummy.dispose();
dummy = null; 

这篇关于闪存安全设置面板 - 监听close事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆