as3 determine if camera access was denied
问题 How can I determine if access to the camera and mic were denied in Flash? I can get the camera and mic, but I need to know if the user denied access. 回答1: Attach a status event listener and check if the camera is muted, see docs: Dispatched when a camera reports its status. Before accessing a camera, the runtime displays a Privacy dialog box to let users allow or deny access to their camera. If the value of the code property is "Camera.Muted", the user has refused to allow the SWF file access