Packagejp.progression.casts
Classpublic class CastPreloader
InheritanceCastPreloader Inheritance ExDocument Inheritance ExMovieClip Inheritance flash.display.MovieClip
Implementsjp.progression.core.impls.ICastObject

CastPreloader クラスは、ExDocument クラスの基本機能を拡張し、イベントフローとの連携機能を実装した jp.progression パッケージで使用されるプリロード処理に特化したドキュメント専用クラスです。


Example
  

See also

jp.progression.casts.getInstanceById()
jp.progression.casts.getInstancesByGroup()


Public Properties
 PropertyDefined by
  background : Sprite
[read-only] 読み込まれるコンテンツよりも背面に表示したい DisplayObject を管理する Sprite インスタンスを取得します。
CastPreloader
  bottom : Number
[static][read-only] ステージ下の Y 座標を取得します。 Get the bottom Y coordinate of the stage.
CastPreloader
  bytesLoaded : uint
[read-only] そのメディアのロード済みのバイト数です。 The number of bytes that are loaded for the media.
CastPreloader
  bytesTotal : uint
[read-only] メディアファイル全体の圧縮後のバイト数です。 The number of compressed bytes in the entire media file.
CastPreloader
  center : Number
[static][read-only] ステージ中央の X 座標を取得します。 Get the center X coordinate of the stage.
CastPreloader
  checkPolicyFile : Boolean
[read-only] オブジェクトをロードする前に、Flash Player がクロスドメインポリシーファイルの存在を確認するかどうかを取得または指定します。 ただし、読み込み処理が開始された以降は設定を変更することはできません。
CastPreloader
 Inheritedchildren : Array
子ディスプレイオブジェクトが保存されている配列です。 インデックス値が断続的に指定可能であるため、getChildAt() ではなくこのプロパティを使用して子ディスプレイオブジェクト走査を行います。 この配列を操作することで元の配列を変更することはできません。 The array that saves child display objects.
ExMovieClip
 InheritedclassName : String
インスタンスのクラス名を取得します。 Indicates the instance className of the IExDisplayObject.
ExMovieClip
  content : DisplayObject
[read-only] load() メソッドまたは loadBytes() メソッドを使用して読み込まれた SWF ファイルまたはイメージ(JPG、PNG、または GIF)ファイルのルート表示オブジェクトが含まれます。 Contains the root display object of the SWF file or image (JPG, PNG, or GIF) file that was loaded by using the load() or loadBytes() methods.
CastPreloader
  contentLoaderInfo : LoaderInfo
[read-only] 読み込まれているオブジェクトに対応する LoaderInfo オブジェクトを返します。 Returns a LoaderInfo object corresponding to the object being loaded.
CastPreloader
  contextMenu : ContextMenu
CastPreloader
  executor : ExecutorObject
[read-only] 関連付けられている ExecutorObject インスタンスを取得します。
CastPreloader
  foreground : Sprite
[read-only] 読み込まれるコンテンツよりも前面に表示したい DisplayObject を管理する Sprite インスタンスを取得します。
CastPreloader
 Inheritedgroup : String
インスタンスのグループ名を取得または設定します。 Indicates the instance group of the IExDisplayObject.
ExMovieClip
 Inheritedid : String
インスタンスの識別子を取得または設定します。 Indicates the instance id of the IExDisplayObject.
ExMovieClip
 InheritedisDragging : Boolean
startDrag() メソッドを使用したドラッグ処理を行っている最中かどうかを取得します。 Returns if the drag process which uses startDrag() method is executing.
ExMovieClip
 InheritedisPlaying : Boolean
ムービークリップのタイムライン内で再生ヘッドの移動処理が行われているかどうかを取得します。 Returns if the movement processing of the playback head is executing in the timeline of the MovieClip.
ExMovieClip
 InheritedisReady : Boolean
ドキュメントの準備が完了しているかどうかを取得します。
ExDocument
  left : Number
[static][read-only] ステージ左の X 座標を取得します。 Get the left X coordinate of the stage.
CastPreloader
  middle : Number
[static][read-only] ステージ中央の Y 座標を取得します。 Get the center Y coordinate of the stage.
CastPreloader
  onCastLoadComplete : Function
読み込み処理が完了された直後に呼び出されるイベントハンドラメソッドを取得または設定します。 このイベント処理の実行中には、ExecutorObject を使用した非同期処理が行えます。
CastPreloader
  onCastLoadStart : Function
読み込み処理が開始される直前に呼び出されるイベントハンドラメソッドを取得または設定します。 このイベント処理の実行中には、ExecutorObject を使用した非同期処理が行えます。
CastPreloader
  onProgress : Function
ProgressEvent.PROGRESS イベントを受け取った場合に呼び出されるイベントハンドラメソッドを取得または設定します。
CastPreloader
  onReady : Function
SWF ファイルの読み込みが完了し、stage 及び loaderInfo にアクセス可能になった場合に呼び出されるイベントハンドラメソッドを取得または設定します。
CastPreloader
  request : URLRequest
[read-only] 自動的に読み込まれる SWF ファイルの URL を取得します。
CastPreloader
  right : Number
[static][read-only] ステージ右の X 座標を取得します。 Get the right X coordinate of the stage.
CastPreloader
  root : CastPreloader
[static][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.
CastPreloader
  self : CastPreloader
[read-only] 自身の参照を取得します。
CastPreloader
  stage : Stage
[static][read-only] 表示オブジェクトのステージです。 The Stage of the display object.
CastPreloader
  top : Number
[static][read-only] ステージ上の Y 座標を取得します。 Get the top Y coordinate of the stage.
CastPreloader
Public Methods
 MethodDefined by
  
CastPreloader(request:URLRequest, checkPolicyFile:Boolean = false, executorClass:Class = null, initObject:Object = null)
新しい CastPreloader インスタンスを作成します。 Creates a new CastPreloader object.
CastPreloader
 Inherited
addChild(child:DisplayObject):DisplayObject
この DisplayObjectContainer インスタンスに子 DisplayObject インスタンスを追加します。 Adds a child DisplayObject instance to this DisplayObjectContainer instance.
ExMovieClip
 Inherited
addChildAt(child:DisplayObject, index:int):DisplayObject
この DisplayObjectContainer インスタンスの指定されたインデックス位置に子 DisplayObject インスタンスを追加します。 Adds a child DisplayObject instance to this DisplayObjectContainer instance.
ExMovieClip
 Inherited
addChildAtAbove(child:DisplayObject, index:int):DisplayObject
この DisplayObjectContainer インスタンスの指定されたインデックス位置に子 DisplayObject インスタンスを追加します。 Adds a child DisplayObject instance to this DisplayObjectContainer instance.
ExMovieClip
  
addCommand(... commands):void
特定のイベントが送出された際に、自動実行させたい Command インスタンスをリストの最後尾に追加します。 追加された Command インスタンスは、イベントが送出される直前に自動的に初期化されます。 このメソッドを使用するためには executor プロパティに CommandExecutor が実装されている必要があります。
CastPreloader
  
clearCommand(completely:Boolean = false):void
登録されている Command インスタンスを削除します。 このメソッドを使用するためには executor プロパティに CommandExecutor が実装されている必要があります。
CastPreloader
 Inherited
getChildAt(index:int):DisplayObject
指定のインデックス位置にある子表示オブジェクトオブジェクトを返します。 Returns the child display object instance that exists at the specified index.
ExMovieClip
 Inherited
getChildIndex(child:DisplayObject):int
子 DisplayObject インスタンスのインデックス位置を返します。 Returns the index position of a child DisplayObject instance.
ExMovieClip
 Inherited
gotoAndPlay(frame:Object, scenes:String = null):void
指定されたフレームで SWF ファイルの再生を開始します。 Start the playback of the SWF file with the specified frame.
ExMovieClip
 Inherited
gotoAndStop(frame:Object, scenes:String = null):void
このムービークリップの指定されたフレームに再生ヘッドを送り、そこで停止させます。 Set the palyback head to the specified frame of the MovieClip and stop at that point.
ExMovieClip
  
insertCommand(... commands):void
特定のイベントが送出された際に、自動実行させたい Command インスタンスをすでにリストに登録され、実行中の Command インスタンスの次の位置に追加します。 追加された Command インスタンスは、イベントが送出される直前に自動的に初期化されます。 このメソッドを使用するためには executor プロパティに CommandExecutor が実装されている必要があります。
CastPreloader
  
load():void
読み込み処理を開始します。
CastPreloader
 Inherited
nextFrame():void
次のフレームに再生ヘッドを送り、停止します。 Move the playback head to the next frame and stop at that point.
ExMovieClip
 Inherited
play():void
ムービークリップのタイムライン内で再生ヘッドを移動します。 Moves the playback head in the timeline of the MovieClip.
ExMovieClip
 Inherited
prevFrame():void
直前のフレームに再生ヘッドを戻し、停止します。 Move the playback head to the previous frame and stop at that point.
ExMovieClip
 Inherited
DisplayObjectContainer に追加されている全ての子 DisplayObject インスタンスを削除します。 Remove the whole child DisplayObject instance which added to the DisplayObjectContainer.
ExMovieClip
 Inherited
removeChild(child:DisplayObject):DisplayObject
DisplayObjectContainer インスタンスの子リストから指定の DisplayObject インスタンスを削除します。 Removes the specified child DisplayObject instance from the child list of the DisplayObjectContainer instance.
ExMovieClip
 Inherited
removeChildAt(index:int):DisplayObject
DisplayObjectContainer の子リストの指定されたインデックス位置から子 DisplayObject インスタンスを削除します。 Removes a child DisplayObject from the specified index position in the child list of the DisplayObjectContainer.
ExMovieClip
 Inherited
setChildIndex(child:DisplayObject, index:int):void
表示オブジェクトコンテナの既存の子の位置を変更します。 Changes the position of an existing child in the display object container.
ExMovieClip
 Inherited
setChildIndexAbove(child:DisplayObject, index:int):void
表示オブジェクトコンテナの既存の子の位置を変更します。 Changes the position of an existing child in the display object container.
ExMovieClip
 Inherited
setProperties(parameters:Object):DisplayObject
インスタンスに対して、複数のプロパティを一括設定します。 Setup the several instance properties.
ExMovieClip
 Inherited
startDrag(lockCenter:Boolean = false, bounds:Rectangle = null):void
指定されたスプライトをユーザーがドラッグできるようにします。 Allow the user to drag the specified sprite.
ExMovieClip
 Inherited
stop():void
ムービークリップ内の再生ヘッドを停止します。 Stops the playback head in the MovieClip.
ExMovieClip
 Inherited
stopDrag():void
startDrag() メソッドを終了します。 Ends the startDrag() method.
ExMovieClip
 Inherited
swapChildren(child1:DisplayObject, child2:DisplayObject):void
指定された 2 つの子オブジェクトの z 順序(重ね順)を入れ替えます。 Swaps the z-order (front-to-back order) of the two specified child objects.
ExMovieClip
 Inherited
swapChildrenAt(index1:int, index2:int):void
子リスト内の指定されたインデックス位置に該当する 2 つの子オブジェクトの z 順序(重ね順)を入れ替えます。 Swaps the z-order (front-to-back order) of the child objects at the two specified index positions in the child list.
ExMovieClip
 Inherited
ムービークリップの再生状態に応じて、再生もしくは停止します。 Playback or stops according to the playback state of the MovieClip.
ExMovieClip
 Inherited
toString():String
指定されたオブジェクトのストリング表現を返します。 Returns the string representation of the specified object.
ExMovieClip
  
updateManager():Boolean
マネージャーオブジェクトとの関連付けを更新します。
CastPreloader
Protected Methods
 MethodDefined by
  
読み込み処理が完了された直後に呼び出されるオーバーライド・イベントハンドラメソッドです。 このイベント処理の実行中には、ExecutorObject を使用した非同期処理が行えます。
CastPreloader
  
読み込み処理が開始される直前に呼び出されるオーバーライド・イベントハンドラメソッドです。 このイベント処理の実行中には、ExecutorObject を使用した非同期処理が行えます。
CastPreloader
  
atProgress():void
ProgressEvent.PROGRESS イベントを受け取った場合に呼び出されるオーバーライド・イベントハンドラメソッドです。
CastPreloader
  
atReady():void
SWF ファイルの読み込みが完了し、stage 及び loaderInfo にアクセス可能になった場合に呼び出されるオーバーライド・イベントハンドラメソッドです。
CastPreloader
Events
 EventSummaryDefined by
   オブジェクトが読み込みを完了した瞬間に送出されます。 このイベント処理の実行中には、ExecutorObject を使用した非同期処理が行えます。 CastPreloader
   オブジェクトが読み込みを開始した瞬間に送出されます。 このイベント処理の実行中には、ExecutorObject を使用した非同期処理が行えます。 CastPreloader
 Inherited SWF ファイルの読み込みが完了し、stage 及び loaderInfo にアクセス可能になった場合に送出されます。 Dispatch when the SWF file completes to read and the stage and the loaderInfo becomes able to access. ExDocument
   入出力エラーが発生して読み込み処理が失敗したときに送出されます。 CastPreloader
   ダウンロード処理を実行中にデータを受信したときに送出されます。 CastPreloader
Property detail
backgroundproperty
background:Sprite  [read-only]

読み込まれるコンテンツよりも背面に表示したい DisplayObject を管理する Sprite インスタンスを取得します。

Implementation
    public function get background():Sprite
bottomproperty 
bottom:Number  [read-only]

ステージ下の Y 座標を取得します。 Get the bottom Y coordinate of the stage.

Implementation
    public static function get bottom():Number

See also

bytesLoadedproperty 
bytesLoaded:uint  [read-only]

そのメディアのロード済みのバイト数です。 The number of bytes that are loaded for the media.

Implementation
    public function get bytesLoaded():uint
bytesTotalproperty 
bytesTotal:uint  [read-only]

メディアファイル全体の圧縮後のバイト数です。 The number of compressed bytes in the entire media file.

Implementation
    public function get bytesTotal():uint
centerproperty 
center:Number  [read-only]

ステージ中央の X 座標を取得します。 Get the center X coordinate of the stage.

Implementation
    public static function get center():Number

See also

checkPolicyFileproperty 
checkPolicyFile:Boolean  [read-only]

オブジェクトをロードする前に、Flash Player がクロスドメインポリシーファイルの存在を確認するかどうかを取得または指定します。 ただし、読み込み処理が開始された以降は設定を変更することはできません。

Implementation
    public function get checkPolicyFile():Boolean
contentproperty 
content:DisplayObject  [read-only]

load() メソッドまたは loadBytes() メソッドを使用して読み込まれた SWF ファイルまたはイメージ(JPG、PNG、または GIF)ファイルのルート表示オブジェクトが含まれます。 Contains the root display object of the SWF file or image (JPG, PNG, or GIF) file that was loaded by using the load() or loadBytes() methods.

Implementation
    public function get content():DisplayObject
contentLoaderInfoproperty 
contentLoaderInfo:LoaderInfo  [read-only]

読み込まれているオブジェクトに対応する LoaderInfo オブジェクトを返します。 Returns a LoaderInfo object corresponding to the object being loaded.

Implementation
    public function get contentLoaderInfo():LoaderInfo
contextMenuproperty 
contextMenu:ContextMenu  [read-write]Implementation
    public function get contextMenu():ContextMenu
    public function set contextMenu(value:ContextMenu):void
executorproperty 
executor:ExecutorObject  [read-only]

関連付けられている ExecutorObject インスタンスを取得します。

Implementation
    public function get executor():ExecutorObject

See also

foregroundproperty 
foreground:Sprite  [read-only]

読み込まれるコンテンツよりも前面に表示したい DisplayObject を管理する Sprite インスタンスを取得します。

Implementation
    public function get foreground():Sprite
leftproperty 
left:Number  [read-only]

ステージ左の X 座標を取得します。 Get the left X coordinate of the stage.

Implementation
    public static function get left():Number

See also

middleproperty 
middle:Number  [read-only]

ステージ中央の Y 座標を取得します。 Get the center Y coordinate of the stage.

Implementation
    public static function get middle():Number

See also

onCastLoadCompleteproperty 
onCastLoadComplete:Function  [read-write]

読み込み処理が完了された直後に呼び出されるイベントハンドラメソッドを取得または設定します。 このイベント処理の実行中には、ExecutorObject を使用した非同期処理が行えます。

Implementation
    public function get onCastLoadComplete():Function
    public function set onCastLoadComplete(value:Function):void
onCastLoadStartproperty 
onCastLoadStart:Function  [read-write]

読み込み処理が開始される直前に呼び出されるイベントハンドラメソッドを取得または設定します。 このイベント処理の実行中には、ExecutorObject を使用した非同期処理が行えます。

Implementation
    public function get onCastLoadStart():Function
    public function set onCastLoadStart(value:Function):void
onProgressproperty 
onProgress:Function  [read-write]

ProgressEvent.PROGRESS イベントを受け取った場合に呼び出されるイベントハンドラメソッドを取得または設定します。

Implementation
    public function get onProgress():Function
    public function set onProgress(value:Function):void
onReadyproperty 
onReady:Function  [read-write]

SWF ファイルの読み込みが完了し、stage 及び loaderInfo にアクセス可能になった場合に呼び出されるイベントハンドラメソッドを取得または設定します。

Implementation
    public function get onReady():Function
    public function set onReady(value:Function):void

See also

requestproperty 
request:URLRequest  [read-only]

自動的に読み込まれる SWF ファイルの URL を取得します。

Implementation
    public function get request():URLRequest
rightproperty 
right:Number  [read-only]

ステージ右の X 座標を取得します。 Get the right X coordinate of the stage.

Implementation
    public static function get right():Number

See also

rootproperty 
root:CastPreloader  [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 static function get root():CastPreloader
selfproperty 
self:CastPreloader  [read-only]

自身の参照を取得します。

Implementation
    public function get self():CastPreloader
stageproperty 
stage:Stage  [read-only]

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

Implementation
    public static function get stage():Stage
topproperty 
top:Number  [read-only]

ステージ上の Y 座標を取得します。 Get the top Y coordinate of the stage.

Implementation
    public static function get top():Number

See also

Constructor detail
CastPreloader()constructor
public function CastPreloader(request:URLRequest, checkPolicyFile:Boolean = false, executorClass:Class = null, initObject:Object = null)

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

Parameters
request:URLRequest読み込む SWF ファイルの絶対 URL または相対 URL です。 The absolute or relative URL of the SWF file to be loaded.
 
checkPolicyFile:Boolean (default = false)オブジェクトをロードする前に、URL ポリシーファイルの存在を確認するかどうかを指定します。 Specifies whether a check should be made for the existence of a URL policy file before loading the object.
 
executorClass:Class (default = null)汎用的な処理の実装として使用したいクラスです。
 
initObject:Object (default = null)設定したいプロパティを含んだオブジェクトです。
Method detail
addCommand()method
public function addCommand(... commands):void

特定のイベントが送出された際に、自動実行させたい Command インスタンスをリストの最後尾に追加します。 追加された Command インスタンスは、イベントが送出される直前に自動的に初期化されます。 このメソッドを使用するためには executor プロパティに CommandExecutor が実装されている必要があります。

Parameters
... commands登録したいコマンドを含む配列です。

See also

atCastLoadComplete()method 
protected function atCastLoadComplete():void

読み込み処理が完了された直後に呼び出されるオーバーライド・イベントハンドラメソッドです。 このイベント処理の実行中には、ExecutorObject を使用した非同期処理が行えます。

atCastLoadStart()method 
protected function atCastLoadStart():void

読み込み処理が開始される直前に呼び出されるオーバーライド・イベントハンドラメソッドです。 このイベント処理の実行中には、ExecutorObject を使用した非同期処理が行えます。

atProgress()method 
protected function atProgress():void

ProgressEvent.PROGRESS イベントを受け取った場合に呼び出されるオーバーライド・イベントハンドラメソッドです。

atReady()method 
protected function atReady():void

SWF ファイルの読み込みが完了し、stage 及び loaderInfo にアクセス可能になった場合に呼び出されるオーバーライド・イベントハンドラメソッドです。

clearCommand()method 
public function clearCommand(completely:Boolean = false):void

登録されている Command インスタンスを削除します。 このメソッドを使用するためには executor プロパティに CommandExecutor が実装されている必要があります。

Parameters
completely:Boolean (default = false)true が設定されている場合は登録されている全てのコマンド登録を解除し、false の場合には現在処理中のコマンド以降の登録を解除します。

See also

insertCommand()method 
public function insertCommand(... commands):void

特定のイベントが送出された際に、自動実行させたい Command インスタンスをすでにリストに登録され、実行中の Command インスタンスの次の位置に追加します。 追加された Command インスタンスは、イベントが送出される直前に自動的に初期化されます。 このメソッドを使用するためには executor プロパティに CommandExecutor が実装されている必要があります。

Parameters
... commands登録したいコマンドを含む配列です。

See also

load()method 
public function load():void

読み込み処理を開始します。

updateManager()method 
public function updateManager():Boolean

マネージャーオブジェクトとの関連付けを更新します。

Returns
Boolean関連付けが成功したら true を、それ以外は false を返します。

See also

Event detail
castLoadCompleteevent 
Event object type: jp.progression.events.CastEvent

オブジェクトが読み込みを完了した瞬間に送出されます。 このイベント処理の実行中には、ExecutorObject を使用した非同期処理が行えます。

castLoadStartevent  
Event object type: jp.progression.events.CastEvent

オブジェクトが読み込みを開始した瞬間に送出されます。 このイベント処理の実行中には、ExecutorObject を使用した非同期処理が行えます。

ioErrorevent  
Event object type: flash.events.IOErrorEvent

入出力エラーが発生して読み込み処理が失敗したときに送出されます。

progressevent  
Event object type: flash.events.ProgressEvent

ダウンロード処理を実行中にデータを受信したときに送出されます。