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

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

问题描述

通过麦克风或摄像头使用 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.

Flash Player 错误报告及解决方法

我尚未测试该解决方法,但它应该仍然有效吗?祝你好运.

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

编辑:

对于无法/不会访问 Adob​​e 错误跟踪器的任何人,以下是 Philippe 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; 

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

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