package {
import flash.display.*;
import flash.events.*;
import flash.system.*;
//セキュリティダイアログの利用
[SWF(width=240, height=240, backgroundColor=0xFFFFFF)]
public class SecurityEx extends Sprite {
//コンストラクタ
public function SecurityEx() {
var button:CustomButton;
//カメラ設定
button=new CustomButton("カメラ設定");
addChild(button);
button.y=30*0;
button.addEventListener(MouseEvent.MOUSE_DOWN,
function(evt:MouseEvent):void {
Security.showSettings(SecurityPanel.CAMERA);});
//デフォルト設定
button=new CustomButton("デフォルト設定");
addChild(button);
button.y=30*1;
button.addEventListener(MouseEvent.MOUSE_DOWN,
function(evt:MouseEvent):void {
Security.showSettings(SecurityPanel.DEFAULT);});
//ローカル記憶領域設定
button=new CustomButton("ローカル記憶領域設定");
addChild(button);
button.y=30*2;
button.addEventListener(MouseEvent.MOUSE_DOWN,
function(evt:MouseEvent):void {
Security.showSettings(SecurityPanel.LOCAL_STORAGE);});
//マイク設定
button=new CustomButton("マイク設定");
addChild(button);
button.y=30*3;
button.addEventListener(MouseEvent.MOUSE_DOWN,
function(evt:MouseEvent):void {
Security.showSettings(SecurityPanel.MICROPHONE);});
//プライバシー設定
button=new CustomButton("プライバシー設定");
addChild(button);
button.y=30*4;
button.addEventListener(MouseEvent.MOUSE_DOWN,
function(evt:MouseEvent):void {
Security.showSettings(SecurityPanel.PRIVACY);});
//設定マネージャ
button=new CustomButton("設定マネージャ");
addChild(button);
button.y=30*5;
button.addEventListener(MouseEvent.MOUSE_DOWN,
function(evt:MouseEvent):void {
Security.showSettings(SecurityPanel.SETTINGS_MANAGER);});
}
}
}
|