| パッケージ | flash.system |
| クラス | public final class SecurityPanel |
| 継承 | SecurityPanel Object |
| 言語バージョン: | ActionScript 3.0 |
| ランタイムバージョン: | AIR 1.0, Flash Player 9, Flash Lite 4 |
このクラスには、Security.showSettings() メソッドで使用する静的定数があります。SecurityPanel クラスの新しいインスタンスは作成できません。
| 定数 | 定義元 | ||
|---|---|---|---|
| CAMERA : String = "camera" [静的]
Security.showSettings() に渡されると、Flash Player の [設定] の [カメラ] パネルが表示されます。 | SecurityPanel | ||
| DEFAULT : String = "default" [静的]
Security.showSettings() に渡されると、ユーザーが最後に Flash Player の「設定」を閉じたときに開いていたパネルが表示されます。 | SecurityPanel | ||
| DISPLAY : String = "display" [静的]
Security.showSettings() に渡されると、Flash Player の [設定] の [Display] パネルが表示されます。 | SecurityPanel | ||
| LOCAL_STORAGE : String = "localStorage" [静的]
Security.showSettings() に渡されると、Flash Player の [設定] の [ローカル記憶領域] パネルが表示されます。 | SecurityPanel | ||
| MICROPHONE : String = "microphone" [静的]
Security.showSettings() に渡されると、Flash Player の [設定] の [マイク] パネルが表示されます。 | SecurityPanel | ||
| PRIVACY : String = "privacy" [静的]
Security.showSettings() に渡されると、Flash Player の [設定] の [プライバシー設定] パネルが表示されます。 | SecurityPanel | ||
| SETTINGS_MANAGER : String = "settingsManager" [静的]
Security.showSettings() に渡されると、別のブラウザーウィンドウで設定マネージャーが表示されます。 | SecurityPanel | ||
CAMERA | 定数 |
public static const CAMERA:String = "camera"| 言語バージョン: | ActionScript 3.0 |
| ランタイムバージョン: | AIR 1.0, Flash Player 9, Flash Lite 4 |
Security.showSettings() に渡されると、Flash Player の [設定] の [カメラ] パネルが表示されます。
関連する API エレメント
DEFAULT | 定数 |
public static const DEFAULT:String = "default"| 言語バージョン: | ActionScript 3.0 |
| ランタイムバージョン: | AIR 1.0, Flash Player 9, Flash Lite 4 |
Security.showSettings() に渡されると、ユーザーが最後に Flash Player の「設定」を閉じたときに開いていたパネルが表示されます。
関連する API エレメント
DISPLAY | 定数 |
public static const DISPLAY:String = "display"| 言語バージョン: | ActionScript 3.0 |
| ランタイムバージョン: | AIR 1.0, Flash Player 9, Flash Lite 4 |
Security.showSettings() に渡されると、Flash Player の [設定] の [Display] パネルが表示されます。
関連する API エレメント
LOCAL_STORAGE | 定数 |
public static const LOCAL_STORAGE:String = "localStorage"| 言語バージョン: | ActionScript 3.0 |
| ランタイムバージョン: | AIR 1.0, Flash Player 9, Flash Lite 4 |
Security.showSettings() に渡されると、Flash Player の [設定] の [ローカル記憶領域] パネルが表示されます。
関連する API エレメント
MICROPHONE | 定数 |
public static const MICROPHONE:String = "microphone"| 言語バージョン: | ActionScript 3.0 |
| ランタイムバージョン: | AIR 1.0, Flash Player 9, Flash Lite 4 |
Security.showSettings() に渡されると、Flash Player の [設定] の [マイク] パネルが表示されます。
関連する API エレメント
PRIVACY | 定数 |
public static const PRIVACY:String = "privacy"| 言語バージョン: | ActionScript 3.0 |
| ランタイムバージョン: | AIR 1.0, Flash Player 9, Flash Lite 4 |
Security.showSettings() に渡されると、Flash Player の [設定] の [プライバシー設定] パネルが表示されます。
関連する API エレメント
SETTINGS_MANAGER | 定数 |
public static const SETTINGS_MANAGER:String = "settingsManager"| 言語バージョン: | ActionScript 3.0 |
| ランタイムバージョン: | AIR 1.0, Flash Player 9, Flash Lite 4 |
Security.showSettings() に渡されると、別のブラウザーウィンドウで設定マネージャーが表示されます。
関連する API エレメント
click イベントを使用して、「Flash Player 設定」のローカル記憶領域パネルを表示する方法を示します。オレンジのボックスが draw() を使用してステージに追加されます。draw() では、click イベントリスナーに名前付き clickHandler() が追加されます。これは click イベントに応答し、ローカル記憶領域パネルを開くように Flash Player に指示します。
package {
import flash.display.Sprite;
import flash.text.TextField;
import flash.events.*;
import flash.system.Security;
import flash.system.SecurityPanel;
public class SecurityExample extends Sprite {
private var bgColor:uint = 0xFFCC00;
private var size:uint = 100;
public function SecurityExample() {
draw();
}
private function draw():void {
var child:Sprite = new Sprite();
child.graphics.beginFill(bgColor);
child.graphics.drawRect(0, 0, size, size);
child.graphics.endFill();
child.buttonMode = true;
var label:TextField = new TextField();
label.text = "settings";
label.selectable = false;
label.mouseEnabled = false;
child.addChild(label);
child.addEventListener(MouseEvent.CLICK, clickHandler);
addChild(child);
}
private function clickHandler(event:MouseEvent):void {
Security.showSettings(SecurityPanel.LOCAL_STORAGE);
}
}
}
Tue Jun 12 2018, 10:34 AM Z
継承されるパブリックプロパティを隠す
継承されるパブリックプロパティを表示