I'm quite new to AS3 so take it easy on me ;) I'm working on a Flash application and it requires the use of the microphone. I got the Privacy dialog. So far so good.
One of the requirements for using the application is to accept Privacy dialog for using the mic. If the user denies the access to the mic, the application should display again the Privacy dialog.
So...How can I do to display the privacy dialog again and again till the user accept it?
As an example, in the airtime website, after registering with facebook, you get a Privacy Dialog. Clicking on the deny button will make to display another Privacy Dialog.
Updated: Here you can check my code.
public function SecurityDialog () {
log("hello world");
mic = Microphone.getMicrophone();
if (mic != null) {
log("microphone name: " + mic.name + ", muted: " + mic.muted);
mic.addEventListener(ActivityEvent.ACTIVITY, this.onMicActivity);
mic.addEventListener(StatusEvent.STATUS, this.onMicStatus);
// Determine if the user has already allowed access for us
if (mic.muted) {
Security.showSettings(SecurityPanel.PRIVACY);
}
}
log("done");
}
In the privacy dialog, if the user denies the access to the mic and click on the close button, the Privacy dialog should be displayed again. Do you know how can I do that?
Thanks again people