-
利用flash.system.Security.showSettings( ) 方法可以打开用户的flashplayer Setting对话框,提示设置更大的权限访问本地系统。
flash.system.Security.showSettings( ) 打开的flashplayer设置对话框包含几个版面。可以用过一个字符性参数打开想要的版面。为了防止印刷错误,这些字符串定义为 flash.system.SecurityPanel 类的静态属性。
SecurityPanel.CAMERA
允许用户选择可用的摄像头
SecurityPanel.DEFAULT
显示最后一次打开的面板
SecurityPanel.LOCAL_STORAGE
允许用户指定本地存储,包括最大使用空间
SecurityPanel.MICROPHONE
允许用户选择话筒并且调整音量
SecurityPanel.PRIVACY
允许用户指定是否可以通过flash访问摄像头和话筒
SecurityPanel.SETTINGS_MANAGER
打开新的浏览器窗口连接设置管理页面,给用户一些更详细的选项 和更改全局的能力,不再仅仅是哪几个特定的问题。
如果showSettings( )不用参数,默认的是SecurityPanel.DEFAULT。下面是一个打开设置本地存储的面板。
// Open the Settings dialog box to the Local Storage tab.
flash.system.Security.showSettings(SecurityPanel.LOCAL_STORAGE);
转载于:https://my.oschina.net/ym1983/blog/835594