Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6221359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:07:09+00:00 2026-05-24T08:07:09+00:00

When using a microphone or camera in a Flash application, the user must grant

  • 0

When using a microphone or camera in a Flash application, the user must grant access to the devices in the security settings panel. The decision of allowing access or denying it can be set to be remembered the next time the application will run by checking the “remember” check box.

And when a user has set to “remember” his choice, the security panel will not pop open when trying to access the said devices. But how do we know if access was granted or not?

So is there a way to check if the user has either allowed or denied access to the microphone as well as check if this decision was set to be a one shot or remembered the next time?

This would be particularly useful when the user has denied access previously and set his decision to be remembered. Being aware of this fact lets us display a message telling the user he must click to open the security panel and allow access if he wants to use the application, for example.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T08:07:10+00:00Added an answer on May 24, 2026 at 8:07 am

    Flash easily lets you check the current restrictions and is pretty detailed in what information it lets you have. It’s all available in the Camera documentation on the Adobe website but I’ve posted an example below, hope it helps.

    package 
    {
        import flash.display.Sprite;
        import flash.events.StatusEvent;
        import flash.media.Camera;
        import flash.system.Security;
        import flash.system.SecurityPanel;
    
        public class CameraExample extends Sprite
        {
            private var _cam:Camera;
    
            public function CameraExample()
            {
                if (Camera.isSupported)
                {
                    this._cam = Camera.getCamera();
    
                    if (!this._cam)
                    {
                        // no camera is installed
                    }
                    else if (this._cam.muted)
                    {
                        // user has disabled the camera access in security settings
    
                        Security.showSettings(SecurityPanel.PRIVACY); // show security settings window to allow them to change camera security settings
    
                        this._cam.addEventListener(StatusEvent.STATUS, this._statusHandler, false, 0, true); // listen out for their new decision
                    }
                    else
                    {
                        // you have access, do what you like with the cam object
                    }
                }
                else
                {
                    // camera is not supported on this device (iOS/Android etc)
                }
            }
    
            private function _statusHandler(e:StatusEvent):void
            {
                if (e.code == "Camera.Unmuted")
                {
                    this._cam.removeEventListener(StatusEvent.STATUS, this._statusHandler);
    
                    // they have allowed access to the camera, do what you like the cam object
                }
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've written a basic SL4 application to capture audio data from the microphone using
Description My application record sound from phone microphone. I am using android standard classes
Flash has webcam and microphone support for live video and audio transmission, and using
Has anyone successfully tried using Microphone.getEnhancedMicrophone() method in Adobe Flash CS5? I tried all
I am trying to develop an application which detects ultrosonic waves using microphone. These
I am attempting to make a Guitar Tuner in flash using the microphone. I
I am trying to record using the iphones microphone: This is my code: NSArray
First is there any technique for using Action Script for recording sound from microphone?
I made a program to mute microphone using WinAPI and it seems to work
I want to see if there is a microphone active using Python. How can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.