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 have resolved this issue in the next way:
Check my full util class SecurityPanelUtil that shows settings dialog and then handle it close and notifies via callbacks immediately.
call security panel ( like ns.addStream(mic))
I stumbled on this when attempting to search for a solution.
Flash Player bug report WITH WORKAROUND
I haven't tested the workaround, but it should still work? Good luck.
Edit:
For anyone who can't/won't access the Adobe bug tracker, here is the workaround originally posted by Philippe Piernot:
The panel is secretly rendered using Flash's own display engine. To do this they secretly add the panel to the display list of the stage.
You can detect this by checking if stage.getChildAt(stage.numChildren-1) equals null. That's an otherwise impossible scenario that reveals the existence of the panel.