Packagejp.progression.casts
Classpublic class CastPreloader
InheritanceCastPreloader Inheritance ExDocument Inheritance ExMovieClip Inheritance flash.display.MovieClip
Implements ICastObject

CastPreloader クラスは、ExPreloader クラスの基本機能を拡張し、イベントフローとの連携機能を実装した jp.progression パッケージで使用される基本的な表示オブジェクトクラスです。

View the examples



Public Properties
 PropertyDefined By
 Inheritedalign : String
[static] Flash Player またはブラウザでのステージの配置を指定する StageAlign クラスの値です。 A value from the StageAlign class that specifies the alignment of the stage in Flash Player or the browser.
ExDocument
 Inheritedbottom : int
[static] [read-only] ステージ下の Y 座標を取得します。 Get the bottom Y coordinate of the stage.
ExDocument
  bytesLoaded : int
[read-only] そのメディアのロード済みのバイト数です。 The number of bytes that are loaded for the media.
CastPreloader
  bytesTotal : int
[read-only] メディアファイル全体の圧縮後のバイト数です。 The number of compressed bytes in the entire media file.
CastPreloader
 InheritedcenteringX : Boolean
ExDocument インスタンスの画面上の表示 X 座標を常に SWF ファイルエリアの中央とするかどうかを取得または設定します。 Acquire or set if the X coordinate of the ExDocument instance to display, will be at the center of the SWF file area.
ExDocument
 InheritedcenteringY : Boolean
ExDocument インスタンスの画面上の表示 Y 座標を常に SWF ファイルエリアの中央とするかどうかを取得または設定します。 Acquire or set if the Y coordinate of the ExDocument instance to display, will be at the center of the SWF file area.
ExDocument
 InheritedcenterX : int
[static] [read-only] ステージ中央の X 座標を取得します。 Get the center X coordinate of the stage.
ExDocument
 InheritedcenterY : int
[static] [read-only] ステージ中央の Y 座標を取得します。 Get the center Y coordinate of the stage.
ExDocument
  checkPolicyFile : Boolean
オブジェクトをロードする前に、Flash Player がクロスドメインポリシーファイルの存在を確認するかどうかを取得または指定します。 ただし、読み込み処理が開始された以降は設定を変更することはできません。
CastPreloader
 Inheritedchildren : Array
[read-only] 子ディスプレイオブジェクトが保存されている配列です。 インデックス値が断続的に指定可能である為、getChildAt() ではなくこのプロパティを使用して子ディスプレイオブジェクト走査を行います。 この配列を操作することで元の配列を変更することはできません。 The array that saves child display objects.
ExMovieClip
 InheritedclassName : String
[read-only] インスタンスのクラス名を取得します。 Indicates the instance className of the IExDisplayObject.
ExMovieClip
 InheritedcontentHeight : int
[static] [read-only] ロードされたファイルの規格高さです。 The height of the contents which loaded.
ExDocument
 InheritedcontentWidth : int
[static] [read-only] ロードされたコンテンツの規格幅です。 The width of the contents which loaded.
ExDocument
  contextMenu : ContextMenu
[override]
CastPreloader
 InheriteddisplayState : String
[static] 使用する表示状態を指定する StageDisplayState クラスの値です。 A value from the StageDisplayState class that specifies which display state to use.
ExDocument
  eventHandlerEnabled : Boolean
オブジェクトのイベントハンドラメソッドを有効化するかどうかを指定します。
CastPreloader
  executor : CommandExecutor
[read-only] コマンドを実行する CommandExecutor インスタンスを取得します。
CastPreloader
 InheritedframeRate : Number
[static] ステージのフレームレートを取得または設定します。 Gets and sets the frame rate of the stage.
ExDocument
 Inheritedgroup : String
インスタンスのグループ名を取得または設定します。 Indicates the instance group of the IExDisplayObject.
ExMovieClip
 Inheritedid : String
インスタンスの識別子を取得または設定します。 Indicates the instance id of the IExDisplayObject.
ExMovieClip
 InheritedisDragging : Boolean
[read-only] startDrag() メソッドを使用したドラッグ処理を行っている最中かどうかを取得します。 Returns if the drag process which uses startDrag() method is executing.
ExMovieClip
 InheritedisOnline : Boolean
[static] [read-only] SWF ファイルがオンライン上で実行されているかどうかを取得します。 Acquire if the SWF file is executed at online.
ExDocument
 InheritedisPlaying : Boolean
[read-only] ムービークリップのタイムライン内で再生ヘッドの移動処理が行われているかどうかを取得します。 Returns if the movement processing of the playback head is executing in the timeline of the MovieClip.
ExMovieClip
 Inheritedleft : int
[static] [read-only] ステージ左の X 座標を取得します。 Get the left X coordinate of the stage.
ExDocument
  loaded : Boolean
[read-only] すでに読み込み処理が開始されているかどうかを取得します。
CastPreloader
 InheritedloaderInfo : LoaderInfo
[static] [read-only] この表示オブジェクトが属するファイルのロード情報を含む LoaderInfo インスタンスを返します。 Returns a LoaderInfo object containing information about loading the file to which this display object belongs.
ExDocument
  onCastAdded : Function
CastPreloader
  onCastLoadComplete : Function
シーンオブジェクトが CastEvent.CAST_LOAD_COMPLETE イベントを受け取った場合に呼び出されるイベントハンドラメソッドを取得または設定します。 このイベント処理の実行中には、addCommand() メソッド、及び insertCommand() メソッドによるコマンドの同期処理が行えます。
CastPreloader
  onCastLoadStart : Function
シーンオブジェクトが CastEvent.CAST_LOAD_START イベントを受け取った場合に呼び出されるイベントハンドラメソッドを取得または設定します。 このイベント処理の実行中には、addCommand() メソッド、及び insertCommand() メソッドによるコマンドの同期処理が行えます。
CastPreloader
  onCastRemoved : Function
CastPreloader
  onInit : Function
SWF ファイルの読み込みが完了し、stage 及び loaderInfo にアクセス可能になった場合に呼び出されるイベントハンドラメソッドを取得または設定します。
CastPreloader
  onProgress : Function
シーンオブジェクトが ProgressEvent.PROGRESS イベントを受け取った場合に呼び出されるイベントハンドラメソッドを取得または設定します。
CastPreloader
  parallelMode : Boolean
CommandExecutor の実行方法を並列処理にするかどうかを取得または設定します。
CastPreloader
 Inheritedquality : String
[static] Flash Player が使用するレンダリング品質を指定する StageQuality クラスの値です。 A value from the StageQuality class that specifies which rendering quality is used.
ExDocument
 Inheritedrepeat : Boolean
ムービークリップの再生ヘッドが最後のフレームに移動された後に、最初のフレームに戻って再生を続けるかどうかを取得または設定します。 Get or set if it returns to the first frame and continue playback when the playback head reach to the last frame.
ExMovieClip
 Inheritedright : int
[static] [read-only] ステージ右の X 座標を取得します。 Get the right X coordinate of the stage.
ExDocument
 Inheritedroot : ExDocument
[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.
ExDocument
 InheritedscaleMode : String
[static] 使用する拡大 / 縮小モードを指定する StageScaleMode クラスの値です。 A value from the StageScaleMode class that specifies which scale mode to use.
ExDocument
 Inheritedstage : Stage
[static] [read-only] 表示オブジェクトのステージです。 The Stage of the display object.
ExDocument
 InheritedstageHeight : int
[static] ステージの現在の高さをピクセル単位で指定します。 The current height, in pixels, of the Stage.
ExDocument
 InheritedstageMinHeight : int
[static] ステージの最小高さをピクセル単位で指定します。 Specify the minimum height of the stage in pixels.
ExDocument
 InheritedstageMinWidth : int
[static] ステージの最小幅をピクセル単位で指定します。 Specify the minimum width of the stage in pixels.
ExDocument
 InheritedstageWidth : int
[static] ステージの現在の幅をピクセル単位で指定します。 Specifies the current width, in pixels, of the Stage.
ExDocument
 Inheritedtop : int
[static] [read-only] ステージ上の Y 座標を取得します。 Get the top Y coordinate of the stage.
ExDocument
  url : String
読み込む SWF ファイルの URL を取得または設定します。 ただし、読み込み処理が開始された以降は設定を変更することはできません。
CastPreloader
  useSWFBasePath : Boolean
url プロパティの値に相対パスを使用した際に、SWF ファイルの設置されているフォルダを基準とするかどうかを取得または設定します。 ただし、読み込み処理が開始された以降は設定を変更することはできません。
CastPreloader
 Inheritedx : Number
[override] 親 DisplayObjectContainer のローカル座標を基準にした DisplayObject インスタンスの x 座標を示します。 この値は centering プロパティが true に設定されている場合には変更できません。 Indicates the x coordinate of the DisplayObject instance based on the local coordinate of the parent DisplayObjectContainer.
ExDocument
 Inheritedy : Number
[override] 親 DisplayObjectContainer のローカル座標を基準にした DisplayObject インスタンスの y 座標を示します。 この値は centering プロパティが true に設定されている場合には変更できません。 Indicates the y coordinate of the DisplayObject instance based on the local coordinate of the parent DisplayObjectContainer.
ExDocument
Public Methods
 MethodDefined By
  
CastPreloader(initObject:Object = null)
新しい CastMovieClip インスタンスを作成します。 Creates a new CastMovieClip object.
CastPreloader
 Inherited
addChild(child:DisplayObject):DisplayObject
[override] この DisplayObjectContainer インスタンスに子 DisplayObject インスタンスを追加します。 Adds a child DisplayObject instance to this DisplayObjectContainer instance.
ExMovieClip
 Inherited
addChildAt(child:DisplayObject, index:int):DisplayObject
[override] この 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 インスタンスは、イベントが送出される直前に自動的に削除されます。
CastPreloader
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
[static] イベントリスナーオブジェクトを EventIntegrator インスタンスに登録し、リスナーがイベントの通知を受け取るようにします。 このメソッドを使用して登録されたリスナーを removeEventListener() メソッドで削除した場合には、restoreRemovedListeners() メソッドで再登録させることができます。 Register the event listener object into the EventIntegrator instance to get the event notification.
ExDocument
 Inherited
addExclusivelyEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
[static] イベントリスナーオブジェクトを EventIntegrator インスタンスに登録し、リスナーがイベントの通知を受け取るようにします。 このメソッドを使用して登録されたリスナーは、IEventIntegrator インスタンスの管理外となるため、removeEventListener() メソッドで削除した場合にも、restoreRemovedListeners() メソッドで再登録させることができません。 Register the event listener object into the EventIntegrator instance to get the event notification.
ExDocument
  
clearCommand(completely:Boolean = false):void
登録されている Command インスタンスを削除します。
CastPreloader
 Inherited
completelyRemoveEventListener(type:String, listener:Function, useCapture:Boolean = false):void
[static] EventIntegrator インスタンスからリスナーを削除します。 このメソッドを使用して削除されたリスナーは、restoreRemovedListeners() メソッドで再登録させることができません。 Remove the listener from EventIntegrator instance.
ExDocument
 Inherited
contains(child:DisplayObject):Boolean
[override] 指定された表示オブジェクトが DisplayObjectContainer インスタンスの子であるか、オブジェクト自体であるかを指定します。 Determines whether the specified display object is a child of the DisplayObjectContainer instance or the instance itself.
ExMovieClip
 Inherited
dispatchEvent(event:Event):Boolean
[static] イベントをイベントフローに送出します。 Dispatches an event into the event flow.
ExDocument
 Inherited
getChildAt(index:int):DisplayObject
[override] 指定のインデックス位置にある子表示オブジェクトオブジェクトを返します。 Returns the child display object instance that exists at the specified index.
ExMovieClip
 Inherited
getChildByName(name:String):DisplayObject
[override] 指定された名前に一致する子表示オブジェクトを返します。 Returns the child display object that exists with the specified name.
ExMovieClip
 Inherited
getChildIndex(child:DisplayObject):int
[override] 子 DisplayObject インスタンスのインデックス位置を返します。 Returns the index position of a child DisplayObject instance.
ExMovieClip
 Inherited
getInstanceById(id:String):DisplayObject
指定された id と同じ値が設定されている IExDisplayObject インターフェイスを実装したインスタンスを返します。 Returns the instance implements the IExDisplayObject interface which is set the same value of the specified id.
ExMovieClip
 Inherited
getInstancesByGroup(group:String, sort:Boolean = false):Array
指定された group と同じ値を持つ IExDisplayObject インターフェイスを実装したインスタンスを含む配列を返します。 Returns the array contains the instance which implements the IExDisplayObject interface that has the same value of the specified group.
ExMovieClip
 Inherited
getInstancesByRegExp(fieldName:String, pattern:RegExp, sort:Boolean = false):Array
指定された fieldName が条件と一致する IExDisplayObject インターフェイスを実装したインスタンスを含む配列を返します。 Returns the array contains the instance which implements the IExDisplayObject interface that match the condition to the specified fieldName.
ExMovieClip
 Inherited
gotoAndPlay(frame:Object, scenes:String = null):void
[override] 指定されたフレームで SWF ファイルの再生を開始します。 Start the playback of the SWF file with the specified frame.
ExMovieClip
 Inherited
gotoAndStop(frame:Object, scenes:String = null):void
[override] このムービークリップの指定されたフレームに再生ヘッドを送り、そこで停止させます。 Set the palyback head to the specified frame of the MovieClip and stop at that point.
ExMovieClip
 Inherited
hasEventListener(type:String):Boolean
[static] EventIntegrator インスタンスに、特定のイベントタイプに対して登録されたリスナーがあるかどうかを確認します。 Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
ExDocument
 Inherited
hasFrame(frame:*):Boolean
指定したフレームが存在しているかどうかを返します。 Returns if the specified frame exists.
ExMovieClip
  
insertCommand(... commands):void
特定のイベントが送出された際に、自動実行させたい Command インスタンスをすでにリストに登録され、実行中の Command インスタンスの次の位置に追加します。 追加された Command インスタンスは、イベントが送出される直前に自動的に削除されます。
CastPreloader
 Inherited
nextFrame():void
[override] 次のフレームに再生ヘッドを送り、停止します。 Move the playback head to the next frame and stop at that point.
ExMovieClip
 Inherited
play():void
[override] ムービークリップのタイムライン内で再生ヘッドを移動します。 Moves the playback head in the timeline of the MovieClip.
ExMovieClip
 Inherited
prevFrame():void
[override] 直前のフレームに再生ヘッドを戻し、停止します。 Move the playback head to the previous frame and stop at that point.
ExMovieClip
 Inherited
DisplayObjectContainer に追加されている全ての子 DisplayObject インスタンスを削除します。 Removes the whole child DisplayObject instance added to the DisplayObjectContainer.
ExMovieClip
 Inherited
removeAllListeners(completely:Boolean = false):void
[static] addEventListener() メソッド経由で登録された全てのイベントリスナー登録を削除します。 完全に登録を削除しなかった場合には、削除されたイベントリスナーを restoreRemovedListeners() メソッドで復帰させることができます。 Remove the whole event listener registered via addEventListener() method.
ExDocument
 Inherited
removeChild(child:DisplayObject):DisplayObject
[override] DisplayObjectContainer インスタンスの子リストから指定の DisplayObject インスタンスを削除します。 Removes the specified child DisplayObject instance from the child list of the DisplayObjectContainer instance.
ExMovieClip
 Inherited
removeChildAt(index:int):DisplayObject
[override] DisplayObjectContainer の子リストの指定されたインデックス位置から子 DisplayObject インスタンスを削除します。 Removes a child DisplayObject from the specified index position in the child list of the DisplayObjectContainer.
ExMovieClip
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
[static] EventIntegrator インスタンスからリスナーを削除します。 このメソッドを使用して削除されたリスナーは、restoreRemovedListeners() メソッドで再登録させることができます。 Remove the listener from EventIntegrator instance.
ExDocument
 Inherited
[static] removeEventListener() メソッド、または removeAllListeners() メソッド経由で削除された全てイベントリスナーを再登録します。 Re-register the whole event listener removed via removeEventListener() or removeAllListeners() method.
ExDocument
 Inherited
setChildIndex(child:DisplayObject, index:int):void
[override] 表示オブジェクトコンテナの既存の子の位置を変更します。 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(props:Object):DisplayObject
インスタンスに対して、複数のプロパティを一括設定します。 Setup the several instance properties.
ExMovieClip
 Inherited
startDrag(lockCenter:Boolean = false, bounds:Rectangle = null):void
[override] 指定されたスプライトをユーザーがドラッグできるようにします。 Allow the user to drag the specified sprite.
ExMovieClip
 Inherited
stop():void
[override] ムービークリップ内の再生ヘッドを停止します。 Stops the playback head in the MovieClip.
ExMovieClip
 Inherited
stopDrag():void
[override] startDrag() メソッドを終了します。 Ends the startDrag() method.
ExMovieClip
 Inherited
swapChildren(child1:DisplayObject, child2:DisplayObject):void
[override] 指定された 2 つの子オブジェクトの z 順序(重ね順)を入れ替えます。 Swaps the z-order (front-to-back order) of the two specified child objects.
ExMovieClip
 Inherited
swapChildrenAt(index1:int, index2:int):void
[override] 子リスト内の指定されたインデックス位置に該当する 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
toBitmapData(transparent:Boolean = true, fillColor:uint = 0xFFFFFFFF):BitmapData
指定されたオブジェクトの BitmapData 表現を返します。 Returns the BitmapData representation of the specified object.
ExMovieClip
 Inherited
toString():String
[override] 指定されたオブジェクトのストリング表現を返します。 Returns the string representation of the specified object.
ExMovieClip
 Inherited
toSWFBasePath(url:String):String
[static] 指定された URL ストリングを SWF ファイルの設置されているフォルダを基準とした URL に変換して返します。 絶対パスが指定された場合には、そのまま返します。 Translate the specified URL string to the URL based on the folder where the SWF file is setting.
ExDocument
 Inherited
willTrigger(type:String):Boolean
[static] 指定されたイベントタイプについて、この EventIntegrator インスタンスまたはその祖先にイベントリスナーが登録されているかどうかを確認します。 Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
ExDocument
Protected Methods
 MethodDefined By
  
サブクラスで onCastLoadComplete イベントハンドラメソッドの処理を override で実装したい場合に上書きします。 onCastLoadComplete プロパティに、別のメソッドを設定された場合は無効化されます。
CastPreloader
  
サブクラスで onCastLoadStart イベントハンドラメソッドの処理を override で実装したい場合に上書きします。 onCastLoadStart プロパティに、別のメソッドを設定された場合は無効化されます。
CastPreloader
  
_onInit():void
サブクラスで onInit イベントハンドラメソッドの処理を override で実装したい場合に上書きします。 onInit プロパティに、別のメソッドを設定された場合は無効化されます。
CastPreloader
  
サブクラスで onLoadProgress イベントハンドラメソッドの処理を override で実装したい場合に上書きします。 onLoadProgress プロパティに、別のメソッドを設定された場合は無効化されます。
CastPreloader
Events
 Event Summary Defined By
  ICastObject オブジェクトが AddChild コマンド、または AddChildAt コマンド経由でディスプレイリストに追加された場合に送出されます。 このイベント処理の実行中には、addCommand() メソッド、及び insertCommand() メソッドによるコマンドの同期処理が行えます。CastPreloader
  オブジェクトが読み込みを完了した瞬間に送出されます。 このイベント処理の実行中には、addCommand() メソッド、及び insertCommand() メソッドによるコマンドの同期処理が行えます。CastPreloader
  オブジェクトが読み込みを開始した瞬間に送出されます。 このイベント処理の実行中には、addCommand() メソッド、及び insertCommand() メソッドによるコマンドの同期処理が行えます。CastPreloader
  ICastObject オブジェクトが RemoveChild コマンド、または RemoveAllChild コマンド経由でディスプレイリストから削除された場合に送出されます。 このイベント処理の実行中には、addCommand() メソッド、及び insertCommand() メソッドによるコマンドの同期処理が行えます。CastPreloader
  データが正常にロードされたときに送出されます。CastPreloader
  ネットワーク要求が HTTP を介して行われ、Flash Player が HTTP 状況コードを検出できる場合に送出されます。CastPreloader
 InheritedSWF ファイルの読み込みが完了し、stage 及び loaderInfo にアクセス可能になった場合に送出されます。 Dispatch when the SWF file completes to read and the stage and the loaderInfo becomes able to access.ExDocument
  入出力エラーが発生してロード処理が失敗したときに送出されます。CastPreloader
  ロード操作が開始したときに送出されます。CastPreloader
  ダウンロード処理を実行中にデータを受信したときに送出されます。CastPreloader
 Inheritedステージのリサイズを終了した場合に送出されます。 Dispatch when stage finish to resize.ExDocument
 Inheritedステージがリサイズ処理をしている場合に送出されます。 Dispatch if the stage is processing the resize operation.ExDocument
 Inheritedステージのリサイズを開始した場合に送出されます。 Dispatch when start to resize the stage.ExDocument
  ロードされたオブジェクトが Loader オブジェクトの unload() メソッドを使用して削除されるたびに、LoaderInfo オブジェクトによって送出されます。CastPreloader
Property Detail
bytesLoadedproperty
bytesLoaded:int  [read-only]

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


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

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


Implementation
    public function get bytesTotal():int
checkPolicyFileproperty 
checkPolicyFile:Boolean

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


Implementation
    public function get checkPolicyFile():Boolean
    public function set checkPolicyFile(value:Boolean):void
contextMenuproperty 
contextMenu:ContextMenu[override]


Implementation
    public function get contextMenu():ContextMenu
    public function set contextMenu(value:ContextMenu):void
eventHandlerEnabledproperty 
eventHandlerEnabled:Boolean

オブジェクトのイベントハンドラメソッドを有効化するかどうかを指定します。


Implementation
    public function get eventHandlerEnabled():Boolean
    public function set eventHandlerEnabled(value:Boolean):void
executorproperty 
executor:CommandExecutor  [read-only]

コマンドを実行する CommandExecutor インスタンスを取得します。


Implementation
    public function get executor():CommandExecutor
loadedproperty 
loaded:Boolean  [read-only]

すでに読み込み処理が開始されているかどうかを取得します。


Implementation
    public function get loaded():Boolean
onCastAddedproperty 
onCastAdded:Function


Implementation
    public function get onCastAdded():Function
    public function set onCastAdded(value:Function):void
onCastLoadCompleteproperty 
onCastLoadComplete:Function

シーンオブジェクトが CastEvent.CAST_LOAD_COMPLETE イベントを受け取った場合に呼び出されるイベントハンドラメソッドを取得または設定します。 このイベント処理の実行中には、addCommand() メソッド、及び insertCommand() メソッドによるコマンドの同期処理が行えます。


Implementation
    public function get onCastLoadComplete():Function
    public function set onCastLoadComplete(value:Function):void
onCastLoadStartproperty 
onCastLoadStart:Function

シーンオブジェクトが CastEvent.CAST_LOAD_START イベントを受け取った場合に呼び出されるイベントハンドラメソッドを取得または設定します。 このイベント処理の実行中には、addCommand() メソッド、及び insertCommand() メソッドによるコマンドの同期処理が行えます。


Implementation
    public function get onCastLoadStart():Function
    public function set onCastLoadStart(value:Function):void
onCastRemovedproperty 
onCastRemoved:Function


Implementation
    public function get onCastRemoved():Function
    public function set onCastRemoved(value:Function):void
onInitproperty 
onInit:Function

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


Implementation
    public function get onInit():Function
    public function set onInit(value:Function):void
onProgressproperty 
onProgress:Function

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


Implementation
    public function get onProgress():Function
    public function set onProgress(value:Function):void
parallelModeproperty 
parallelMode:Boolean

CommandExecutor の実行方法を並列処理にするかどうかを取得または設定します。


Implementation
    public function get parallelMode():Boolean
    public function set parallelMode(value:Boolean):void
urlproperty 
url:String

読み込む SWF ファイルの URL を取得または設定します。 ただし、読み込み処理が開始された以降は設定を変更することはできません。


Implementation
    public function get url():String
    public function set url(value:String):void
useSWFBasePathproperty 
useSWFBasePath:Boolean

url プロパティの値に相対パスを使用した際に、SWF ファイルの設置されているフォルダを基準とするかどうかを取得または設定します。 ただし、読み込み処理が開始された以降は設定を変更することはできません。


Implementation
    public function get useSWFBasePath():Boolean
    public function set useSWFBasePath(value:Boolean):void
Constructor Detail
CastPreloader()Constructor
public function CastPreloader(initObject:Object = null)

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

Parameters
initObject:Object (default = null)設定したいプロパティを含んだオブジェクトです。
Method Detail
_onCastLoadComplete()method
protected function _onCastLoadComplete():void

サブクラスで onCastLoadComplete イベントハンドラメソッドの処理を override で実装したい場合に上書きします。 onCastLoadComplete プロパティに、別のメソッドを設定された場合は無効化されます。

_onCastLoadStart()method 
protected function _onCastLoadStart():void

サブクラスで onCastLoadStart イベントハンドラメソッドの処理を override で実装したい場合に上書きします。 onCastLoadStart プロパティに、別のメソッドを設定された場合は無効化されます。

_onInit()method 
protected function _onInit():void

サブクラスで onInit イベントハンドラメソッドの処理を override で実装したい場合に上書きします。 onInit プロパティに、別のメソッドを設定された場合は無効化されます。

_onProgress()method 
protected function _onProgress():void

サブクラスで onLoadProgress イベントハンドラメソッドの処理を override で実装したい場合に上書きします。 onLoadProgress プロパティに、別のメソッドを設定された場合は無効化されます。

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

特定のイベントが送出された際に、自動実行させたい Command インスタンスをリストの最後尾に追加します。 追加された Command インスタンスは、イベントが送出される直前に自動的に削除されます。

Parameters

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

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

登録されている Command インスタンスを削除します。

Parameters

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

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

特定のイベントが送出された際に、自動実行させたい Command インスタンスをすでにリストに登録され、実行中の Command インスタンスの次の位置に追加します。 追加された Command インスタンスは、イベントが送出される直前に自動的に削除されます。

Parameters

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

Event Detail
castAdded Event
Event Object Type: jp.progression.events.CastEvent
CastEvent.type property = jp.progression.events.CastEvent.CAST_ADDED

ICastObject オブジェクトが AddChild コマンド、または AddChildAt コマンド経由でディスプレイリストに追加された場合に送出されます。 このイベント処理の実行中には、addCommand() メソッド、及び insertCommand() メソッドによるコマンドの同期処理が行えます。

castAdded イベントオブジェクトの type プロパティ値を定義します。 The CastEvent.CAST_ADDED constant defines the value of the type property of an castAdded event object.
castLoadComplete Event  
Event Object Type: jp.progression.events.CastEvent
CastEvent.type property = jp.progression.events.CastEvent.CAST_LOAD_COMPLETE

オブジェクトが読み込みを完了した瞬間に送出されます。 このイベント処理の実行中には、addCommand() メソッド、及び insertCommand() メソッドによるコマンドの同期処理が行えます。

castLoadComplete イベントオブジェクトの type プロパティ値を定義します。 The CastEvent.CAST_LOAD_COMPLETE constant defines the value of the type property of an castLoadComplete event object.
castLoadStart Event  
Event Object Type: jp.progression.events.CastEvent
CastEvent.type property = jp.progression.events.CastEvent.CAST_LOAD_START

オブジェクトが読み込みを開始した瞬間に送出されます。 このイベント処理の実行中には、addCommand() メソッド、及び insertCommand() メソッドによるコマンドの同期処理が行えます。

castLoadStart イベントオブジェクトの type プロパティ値を定義します。 The CastEvent.CAST_LOAD_START constant defines the value of the type property of an castLoadStart event object.
castRemoved Event  
Event Object Type: jp.progression.events.CastEvent
CastEvent.type property = jp.progression.events.CastEvent.CAST_REMOVED

ICastObject オブジェクトが RemoveChild コマンド、または RemoveAllChild コマンド経由でディスプレイリストから削除された場合に送出されます。 このイベント処理の実行中には、addCommand() メソッド、及び insertCommand() メソッドによるコマンドの同期処理が行えます。

castRemoved イベントオブジェクトの type プロパティ値を定義します。 The CastEvent.CAST_REMOVED constant defines the value of the type property of an castRemoved event object.
complete Event  
Event Object Type: flash.events.Event
Event.type property = flash.events.Event.COMPLETE

データが正常にロードされたときに送出されます。

httpStatus Event  
Event Object Type: flash.events.HTTPStatusEvent
HTTPStatusEvent.type property = flash.events.HTTPStatusEvent.HTTP_STATUS

ネットワーク要求が HTTP を介して行われ、Flash Player が HTTP 状況コードを検出できる場合に送出されます。

ioError Event  
Event Object Type: flash.events.IOErrorEvent
IOErrorEvent.type property = flash.events.IOErrorEvent.IO_ERROR

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

open Event  
Event Object Type: flash.events.Event
Event.type property = flash.events.Event.OPEN

ロード操作が開始したときに送出されます。

progress Event  
Event Object Type: flash.events.ProgressEvent
ProgressEvent.type property = flash.events.ProgressEvent.PROGRESS

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

unload Event  
Event Object Type: flash.events.Event
Event.type property = flash.events.Event.UNLOAD

ロードされたオブジェクトが Loader オブジェクトの unload() メソッドを使用して削除されるたびに、LoaderInfo オブジェクトによって送出されます。

Examples