Search Flex Samples

flex player Camera, microphone, clipboard, mouse, and keyboard access

When a SWF file attempts to access a user's camera or microphone using the Camera.get() or Microphone.get() methods, Flash Player displays a Privacy dialog box, in which the user can allow or deny access to their camera and microphone. The user and the administrative user can also disable camera access on a per-site or global basis, through controls in the mms.cfg file, the Settings UI, and the Settings Manager (see Administrative user controls and User controls). With user restrictions, the Camera.get() and Microphone.get() methods each return a null value. You can use the Capabilities.avHardwareDisable property to determine whether the camera and microphone have been administratively prohibited (true) or allowed (false).

The System.setClipboard() method allows a SWF file to replace the contents of the clipboard with a plain-text string of characters. This poses no security risk. To protect against the risk posed by passwords and other sensitive data being cut or copied to clipboards, there is no corresponding "getClipboard" (read) method.

A Flash application can monitor only keyboard and mouse events that occur within its focus. A Flash application cannot detect keyboard or mouse events in another application.


Related Flex Samples

Learn Flex: Flex Samples | Flex Video Tutorials Flex Examples