Security.sandboxTypeの確認(そりゃremoteになりますよ)
SecuritySandBox
@author Copyright (C) naoto koshikawa, All Rights Reserved.
♥0 |
Line 31 |
Modified 2009-08-13 14:52:42 |
MIT License
archived:2017-03-20 04:24:24
ActionScript3 source code
/**
* Copyright naoto5959 ( http://wonderfl.net/user/naoto5959 )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/nrVe
*/
package
{
import flash.display.Sprite;
import flash.system.Security;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
import flash.text.TextFieldType;
import flash.text.TextFormat;
/**
* SecuritySandBox
* @author Copyright (C) naoto koshikawa, All Rights Reserved.
*/
public class SecuritySandBox extends Sprite
{
//----------------------------------------------------------------------
// static properties
//----------------------------------------------------------------------
//------------------------------
// private static properties
//------------------------------
/**
* テキストのフォント
*/
private static const TEXT_FONT:String = "_等幅";
/**
* テキストのフォントサイズ
*/
private static const TEXT_FONT_SIZE:Number = 14;
/**
* テキストの色
*/
private static const TEXT_COLOR:uint = 0x111111;
//----------------------------------------------------------------------
// properties
//----------------------------------------------------------------------
//------------------------------
// private properties
//------------------------------
/**
* デバッグ用のテキストフィールド
*/
private var _textField:TextField;
//----------------------------------------------------------------------
// methods
//----------------------------------------------------------------------
//------------------------------
// public methods
//------------------------------
/**
* constructor
*/
public function SecuritySandBox()
{
buildUI();
_textField.text = "Security.sandboxType:" + Security.sandboxType;
}
//------------------------------
// private methods
//------------------------------
/**
* テキストフィールドを作成します
*/
private function buildUI():void
{
_textField = new TextField();
_textField.type = TextFieldType.DYNAMIC;
_textField.defaultTextFormat = new TextFormat(
TEXT_FONT, TEXT_FONT_SIZE, TEXT_COLOR);
_textField.autoSize = TextFieldAutoSize.LEFT;
_textField.width = _textField.height = 0;
addChild(_textField);
}
}
}