Packagejp.naggg.utils
Classpublic class RedrawRegion
InheritanceRedrawRegion Inheritance Object

再描画ユーティリティ. デバッガの FlashPlayer では「再描画領域を表示」から再描画領域が赤い線で囲まれます. その線はしばらく画面に残ったままとなり、 しばらくするとクリアされたり、されなかったりします. 場合によっては、画面全体が再描画されているにも関わらず、赤線の位置に変化がなく、 パッと見で変化がないように感じます. このクラスを使えば、再描画領域の線の色を常に変化させることが可能なので、 描画領域を詳しくすることができます(線の色は細かく指定することも可能). 有効・無効の切替は以下で行うことができます. ・コンテクストメニュー ・ショートカット Ctrl+Alt+Space ※Altキーは押下のタイミングに注意が必要 最後に、このクラスの使用はデバッガ版の FlashPlayer に限られますが、 通常版であってもコンテクストメニューに表示されるので、 充分に注意を払ってください.

View the examples



Public Properties
 PropertyDefined By
  enabled : Boolean
[static] 有効・無効を設定します.
RedrawRegion
  maxB : int = 0xff
[static]
RedrawRegion
  maxG : int = 0xff
[static]
RedrawRegion
  maxR : int = 0xff
[static]
RedrawRegion
  minB : int = 0x0
[static]
RedrawRegion
  minG : int = 0x0
[static]
RedrawRegion
  minR : int = 0x0
[static]
RedrawRegion
Public Methods
 MethodDefined By
  
静的クラスなのでインスタンスを作りません.必ずエラーを返します.
RedrawRegion
  
init(document:Sprite, enabled:Boolean = true, minR:int = 0x0, maxR:int = 0xff, minG:int = 0x0, maxG:int = 0xff, minB:int = 0x0, maxB:int = 0xff):void
[static] 初期化を行います.
RedrawRegion
Property Detail
enabledproperty
enabled:Boolean

有効・無効を設定します.


Implementation
    public static function get enabled():Boolean
    public static function set enabled(value:Boolean):void
maxBproperty 
public static var maxB:int = 0xff

maxGproperty 
public static var maxG:int = 0xff

maxRproperty 
public static var maxR:int = 0xff

minBproperty 
public static var minB:int = 0x0

minGproperty 
public static var minG:int = 0x0

minRproperty 
public static var minR:int = 0x0

Constructor Detail
RedrawRegion()Constructor
public function RedrawRegion()

静的クラスなのでインスタンスを作りません.必ずエラーを返します.


Throws
Error — #2012: RedrawRegion クラスをインスタンス化することはできません。
Method Detail
init()method
public static function init(document:Sprite, enabled:Boolean = true, minR:int = 0x0, maxR:int = 0xff, minG:int = 0x0, maxG:int = 0xff, minB:int = 0x0, maxB:int = 0xff):void

初期化を行います.

Parameters

document:Sprite — SWFのドキュメント要素
 
enabled:Boolean (default = true) — 有効とするかどうか
 
minR:int (default = 0x0) — 再描画領域エリアの境界線の色、赤の最低の値、デフォルトは0x00
 
maxR:int (default = 0xff) — 再描画領域エリアの境界線の色、赤の最項の値、デフォルトは0xff
 
minG:int (default = 0x0) — 再描画領域エリアの境界線の色、緑の最低の値、デフォルトは0x00
 
maxG:int (default = 0xff) — 再描画領域エリアの境界線の色、緑の最項の値、デフォルトは0xff
 
minB:int (default = 0x0) — 再描画領域エリアの境界線の色、青の最低の値、デフォルトは0x00
 
maxB:int (default = 0xff) — 再描画領域エリアの境界線の色、青の最項の値、デフォルトは0xff

Examples
     import jp.naggg.utils.RedrawRegion;
     // 初期化、コンテクストメニューの都合、ドキュメントを渡してやればOK
     RedrawRegion.init(this, true);
     // RedrawRegion.init(this, true, 0x0, 0x66, 0x99, 0x0, 0x99, 0xff); // 色を設定するとオサレに