Packagejp.nium.events
Classpublic class DocumentEvent
InheritanceDocumentEvent Inheritance flash.events.Event

SWF ファイルのサイズが変更されたときに Stage オブジェクトから送出されるイベントを受け取った ExDocument オブジェクトによって DocumentEvent オブジェクトが送出されます。 DocumentEvent object will be sent from ExDocument object which received the event sent by Stage object when the size of the SWF file chages.

View the examples



Public Properties
 PropertyDefined By
  root : ExDocument
[read-only] ロードされた SWF ファイル内の表示オブジェクトの場合、root プロパティはその SWF ファイルが表す表示リストのツリー構造部分の一番上にある表示オブジェクトとなります。 For a display object in a loaded SWF file, the root property is the top-most display object in the portion of the display list's tree structure represented by that SWF file.
DocumentEvent
  stage : Stage
[read-only] 表示オブジェクトのステージです。 The Stage of the display object.
DocumentEvent
  stageHeight : int
[read-only] ステージの現在の高さをピクセル単位で指定します。 The current height, in pixels, of the Stage.
DocumentEvent
  stageWidth : int
[read-only] ステージの現在の幅をピクセル単位で指定します。 Specifies the current width, in pixels, of the Stage.
DocumentEvent
Public Methods
 MethodDefined By
  
DocumentEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, root:ExDocument = null, stage:Stage = null)
新しい DocumentEvent インスタンスを作成します。 Creates a new DocumentEvent object.
DocumentEvent
  
clone():Event
[override] DocumentEvent インスタンスのコピーを作成して、各プロパティの値を元のプロパティの値と一致するように設定します。 Duplicates an instance of an DocumentEvent subclass.
DocumentEvent
  
toString():String
[override] 指定されたオブジェクトのストリング表現を返します。 Returns the string representation of the specified object.
DocumentEvent
Public Constants
 ConstantDefined By
  INIT : String = init
[static] init イベントオブジェクトの type プロパティ値を定義します。 The DocumentEvent.INIT constant defines the value of the type property of an init event object.
DocumentEvent
  RESIZE_COMPLETE : String = resizeComplete
[static] resizeComplete イベントオブジェクトの type プロパティ値を定義します。 The DocumentEvent.RESIZE_COMPLETE constant defines the value of the type property of an resizeComplete event object.
DocumentEvent
  RESIZE_PROGRESS : String = resizeProgress
[static] resizeProgress イベントオブジェクトの type プロパティ値を定義します。 The DocumentEvent.RESIZE_PROGRESS constant defines the value of the type property of an resizeProgress event object.
DocumentEvent
  RESIZE_START : String = resizeStart
[static] resizeStart イベントオブジェクトの type プロパティ値を定義します。 The DocumentEvent.RESIZE_START constant defines the value of the type property of an resizeStart event object.
DocumentEvent
Property Detail
rootproperty
root:ExDocument  [read-only]

ロードされた SWF ファイル内の表示オブジェクトの場合、root プロパティはその SWF ファイルが表す表示リストのツリー構造部分の一番上にある表示オブジェクトとなります。 For a display object in a loaded SWF file, the root property is the top-most display object in the portion of the display list's tree structure represented by that SWF file.


Implementation
    public function get root():ExDocument
stageproperty 
stage:Stage  [read-only]

表示オブジェクトのステージです。 The Stage of the display object.


Implementation
    public function get stage():Stage
stageHeightproperty 
stageHeight:int  [read-only]

ステージの現在の高さをピクセル単位で指定します。 The current height, in pixels, of the Stage.


Implementation
    public function get stageHeight():int
stageWidthproperty 
stageWidth:int  [read-only]

ステージの現在の幅をピクセル単位で指定します。 Specifies the current width, in pixels, of the Stage.


Implementation
    public function get stageWidth():int
Constructor Detail
DocumentEvent()Constructor
public function DocumentEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, root:ExDocument = null, stage:Stage = null)

新しい DocumentEvent インスタンスを作成します。 Creates a new DocumentEvent object.

Parameters
type:StringDocumentEvent.type としてアクセス可能なイベントタイプです。 The type of the event, accessible as DocumentEvent.type.
 
bubbles:Boolean (default = false)DocumentEvent インスタンスがイベントフローのバブリング段階で処理されるかどうかを判断します。デフォルト値は false です。 Determines whether the DocumentEvent object participates in the bubbling stage of the event flow. The default value is false.
 
cancelable:Boolean (default = false)DocumentEvent インスタンスがキャンセル可能かどうかを判断します。デフォルト値は false です。 Determines whether the DocumentEvent object can be canceled. The default values is false.
 
root:ExDocument (default = null)イベントが発生した Document インスタンスです。 The Document instance which the event occur.
 
stage:Stage (default = null)関連付けられる stage インスタンスです。 The stage instance which will be related.
Method Detail
clone()method
override public function clone():Event

DocumentEvent インスタンスのコピーを作成して、各プロパティの値を元のプロパティの値と一致するように設定します。 Duplicates an instance of an DocumentEvent subclass.

Returns
Event元のオブジェクトと同じプロパティ値を含む新しい DocumentEvent インスタンスです。 A new DocumentEvent object that is identical to the original.
toString()method 
override public function toString():String

指定されたオブジェクトのストリング表現を返します。 Returns the string representation of the specified object.

Returns
Stringオブジェクトのストリング表現です。 A string representation of the object.
Constant Detail
INITConstant
public static const INIT:String = init

init イベントオブジェクトの type プロパティ値を定義します。 The DocumentEvent.INIT constant defines the value of the type property of an init event object.

RESIZE_COMPLETEConstant 
public static const RESIZE_COMPLETE:String = resizeComplete

resizeComplete イベントオブジェクトの type プロパティ値を定義します。 The DocumentEvent.RESIZE_COMPLETE constant defines the value of the type property of an resizeComplete event object.

RESIZE_PROGRESSConstant 
public static const RESIZE_PROGRESS:String = resizeProgress

resizeProgress イベントオブジェクトの type プロパティ値を定義します。 The DocumentEvent.RESIZE_PROGRESS constant defines the value of the type property of an resizeProgress event object.

RESIZE_STARTConstant 
public static const RESIZE_START:String = resizeStart

resizeStart イベントオブジェクトの type プロパティ値を定義します。 The DocumentEvent.RESIZE_START constant defines the value of the type property of an resizeStart event object.

Examples