Forcing the Player Settings panel to appear

When an application tries to access the user's camera or microphone, or to save data on the client computer, Flash Player displays the Player Settings dialog boxes to obtain permission. You can also open the Player Settings panels by right-clicking (Windows) or Control-clicking (Macintosh) on the player Stage. To force the Player Settings panels to appear, use the following code:

// Opens the panel the user viewed last.
System.ShowSettings();
// Opens the Privacy panel.
System.ShowSettings(0);
// Opens the Local Storage panel.
System.ShowSettings(1);
// Opens the Microphone panel.
System.ShowSettings(2);
// Opens the Camera panel.
System.ShowSettings(3);

For example, if your application requires the use of a camera, you can inform the user that they must select Allow in the Privacy Settings panel, and then issue a System.showSettings(0) command. (Make sure your Stage size is at least 215 by 138 pixels; this is the minimum size that Flash requires to display the panel.) For more information, see the System.showSettings() entry in the Client-Side ActionScript Language Reference for Flash Media Server 2.


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/fms/2/docs/00000112.html