パッケージflash.system
クラスpublic final class SecurityPanel
継承SecurityPanel Inheritance Object

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0 Flash Player 9

SecurityPanel クラスは、どのセキュリティ設定パネルを表示するかを指定する値を提供します。

このクラスには、Security.showSettings() メソッドで使用する静的定数があります。SecurityPanel クラスの新しいインスタンスは作成できません。

例を表示

関連項目

Flash Player security


パブリックプロパティ
 プロパティ定義元
 Inheritedconstructor : Object
指定されたオブジェクトインスタンスのクラスオブジェクトまたはコンストラクタ関数への参照です。
Object
 Inheritedprototype : Object
[静的] クラスまたは関数オブジェクトのプロトタイプオブジェクトへの参照です。
Object
パブリックメソッド
 メソッド定義元
 Inherited
オブジェクトに指定されたプロパティが定義されているかどうかを示します。
Object
 Inherited
Object クラスのインスタンスが、パラメータとして指定されたオブジェクトのプロトタイプチェーン内にあるかどうかを示します。
Object
 Inherited
指定されたプロパティが存在し、列挙できるかどうかを示します。
Object
 Inherited
ループ処理に対するダイナミックプロパティの可用性を設定します。
Object
 Inherited
指定されたオブジェクトのストリング表現を返します。
Object
 Inherited
指定されたオブジェクトのプリミティブな値を返します。
Object
パブリック定数
 定数定義元
  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

Security.showSettings() に渡されると、Flash Player の「設定」のカメラパネルが表示されます。

関連項目

DEFAULT定数 
public static const DEFAULT:String = "default"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0 Flash Player 9

Security.showSettings() に渡されると、ユーザーが最後に Flash Player の「設定」を閉じたときに開いていたパネルが表示されます。

関連項目

DISPLAY定数 
public static const DISPLAY:String = "display"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0 Flash Player 9

Security.showSettings() に渡されると、Flash Player の「設定」のディスプレイパネルが表示されます。

関連項目

LOCAL_STORAGE定数 
public static const LOCAL_STORAGE:String = "localStorage"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0 Flash Player 9

Security.showSettings() に渡されると、Flash Player の「設定」のローカル記憶領域パネルが表示されます。

関連項目

MICROPHONE定数 
public static const MICROPHONE:String = "microphone"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0 Flash Player 9

Security.showSettings() に渡されると、Flash Player の「設定」のマイクパネルが表示されます。

関連項目

PRIVACY定数 
public static const PRIVACY:String = "privacy"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0 Flash Player 9

Security.showSettings() に渡されると、Flash Player の「設定」のプライバシー設定パネルが表示されます。

関連項目

SETTINGS_MANAGER定数 
public static const SETTINGS_MANAGER:String = "settingsManager"

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.0 Flash Player 9

Security.showSettings() に渡されると、別のブラウザウィンドウで設定マネージャが表示されます。

関連項目

例の使用法
SecurityExample.as

次の例では、Sprite オブジェクトの 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);
        }
    }
}




 

 

このページに新しいコメントが追加された場合に、電子メールでの通知を希望する。 | コメントレポート

現在のページ: http://livedocs.adobe.com/flex/3_jp/langref/flash/system/SecurityPanel.html