Packagejp.progression.casts
Classpublic class CastButton
InheritanceCastButton Inheritance ExMovieClip Inheritance flash.display.MovieClip
Implements ICastObject

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

View the examples



Public Properties
 PropertyDefined By
  accessKey : String
ボタンの機能をキーボードから使用するためのアクセスキーを取得または設定します。 設定できるキーはアルファベットの A ~ Z までの値です。
CastButton
  buttonEnabled : Boolean
ボタンモードを有効化するかどうかを取得または設定します。
CastButton
  buttonMode : Boolean
[override]
CastButton
 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
  contextMenu : ContextMenu
[override]
CastButton
  eventHandlerEnabled : Boolean
オブジェクトのイベントハンドラメソッドを有効化するかどうかを指定します。
CastButton
  executor : CommandExecutor
[read-only] コマンドを実行する CommandExecutor インスタンスを取得します。
CastButton
 Inheritedgroup : String
インスタンスのグループ名を取得または設定します。 Indicates the instance group of the IExDisplayObject.
ExMovieClip
  href : String
ボタンがクリックされた時の移動先の URL を取得または設定します。 sceneId プロパティと href プロパティが両方とも設定されている場合には、href プロパティの設定が優先されます。
CastButton
 Inheritedid : String
インスタンスの識別子を取得または設定します。 Indicates the instance id of the IExDisplayObject.
ExMovieClip
  isChild : Boolean
[read-only] sceneId プロパティに設定されているシーン識別子の示すシーンと現在のシーンを比較して、自身が子シーンを示しているかどうかを取得します。
CastButton
  isCurrent : Boolean
[read-only] sceneId プロパティに設定されているシーン識別子の示すシーンと現在のシーンを比較して、自身がカレントシーンを示しているかどうかを取得します。
CastButton
 InheritedisDragging : Boolean
[read-only] startDrag() メソッドを使用したドラッグ処理を行っている最中かどうかを取得します。 Returns if the drag process which uses startDrag() method is executing.
ExMovieClip
  isMouseDown : Boolean
[read-only] CastButton インスタンスでポインティングデバイスのボタンを押されているかどうかを取得します。
CastButton
  isParent : Boolean
[read-only] sceneId プロパティに設定されているシーン識別子の示すシーンと現在のシーンを比較して、自身が親シーンを示しているかどうかを取得します。
CastButton
 InheritedisPlaying : Boolean
[read-only] ムービークリップのタイムライン内で再生ヘッドの移動処理が行われているかどうかを取得します。 Returns if the movement processing of the playback head is executing in the timeline of the MovieClip.
ExMovieClip
  isRollOver : Boolean
[read-only] CastButton インスタンスにポインティングデバイスが合わされているかどうかを取得します。
CastButton
  navigateURL : String
[read-only] 現在のボタンの移動先 URL を示すストリングを取得します。 この値はブラウザ上で実行した際に sceneId プロパティと href プロパティの値から決定されます。
CastButton
  onCastAdded : Function
CastButton
  onCastMouseDown : Function
CastButton インスタンスが CastMouseEvent.CAST_MOUSE_DOWN イベントを受け取った場合に呼び出されるイベントハンドラメソッドを取得または設定します。 このイベント処理の実行中には、addCommand() メソッド、及び insertCommand() メソッドによるコマンドの同期処理が行えます。
CastButton
  onCastMouseUp : Function
CastButton インスタンスが CastMouseEvent.CAST_MOUSE_UP イベントを受け取った場合に呼び出されるイベントハンドラメソッドを取得または設定します。 このイベント処理の実行中には、addCommand() メソッド、及び insertCommand() メソッドによるコマンドの同期処理が行えます。
CastButton
  onCastRemoved : Function
CastButton
  onCastRollOut : Function
シーンオブジェクトが CastMouseEvent.CAST_ROLL_OUT イベントを受け取った場合に呼び出されるイベントハンドラメソッドを取得または設定します。 このイベント処理の実行中には、addCommand() メソッド、及び insertCommand() メソッドによるコマンドの同期処理が行えます。
CastButton
  onCastRollOver : Function
CastButton インスタンスが CastMouseEvent.CAST_ROLL_OVER イベントを受け取った場合に呼び出されるイベントハンドラメソッドを取得または設定します。 このイベント処理の実行中には、addCommand() メソッド、及び insertCommand() メソッドによるコマンドの同期処理が行えます。
CastButton
  parallelMode : Boolean
CommandExecutor の実行方法を並列処理にするかどうかを取得または設定します。
CastButton
  progression : Progression
[read-only] 関連付けられている Progression インスタンスを取得します。
CastButton
 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
  sceneId : SceneId
ボタンがクリックされた時の移動先を示すシーン識別子を取得または設定します。 sceneId プロパティと href プロパティが両方とも設定されている場合には、href プロパティの設定が優先されます。
CastButton
  toolTip : ToolTip
[read-only] このオブジェクトに関連付けられている ToolTip インスタンスを取得します。
CastButton
  uiContextMenu : CastButtonContextMenu
[read-only] このオブジェクトに関連付けられている CastButtonContextMenu インスタンスを取得します。
CastButton
  useHandCursor : Boolean
[override]
CastButton
  windowTarget : String
ボタンがクリックされた時の移動先を開くウィンドウ名を取得または設定します。 この値が "_self" または null に設定されている場合には、現在のウィンドウを示します。
CastButton
Public Methods
 MethodDefined By
  
CastButton(initObject:Object = null)
新しい CastButton インスタンスを作成します。 Creates a new CastButton object.
CastButton
 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 インスタンスは、イベントが送出される直前に自動的に削除されます。
CastButton
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
[override] イベントリスナーオブジェクトを EventIntegrator インスタンスに登録し、リスナーがイベントの通知を受け取るようにします。 このメソッドを使用して登録されたリスナーを removeEventListener() メソッドで削除した場合には、restoreRemovedListeners() メソッドで再登録させることができます。 Register the event listener object into the EventIntegrator instance to get the event notification.
ExMovieClip
 Inherited
addExclusivelyEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
イベントリスナーオブジェクトを EventIntegrator インスタンスに登録し、リスナーがイベントの通知を受け取るようにします。 このメソッドを使用して登録されたリスナーは、IEventIntegrator インスタンスの管理外となるため、removeEventListener() メソッドで削除した場合にも、restoreRemovedListeners() メソッドで再登録させることができません。 Register the event listener object into the EventIntegrator instance to get the event notification.
ExMovieClip
  
clearCommand(completely:Boolean = false):void
登録されている Command インスタンスを削除します。
CastButton
 Inherited
completelyRemoveEventListener(type:String, listener:Function, useCapture:Boolean = false):void
EventIntegrator インスタンスからリスナーを削除します。 このメソッドを使用して削除されたリスナーは、restoreRemovedListeners() メソッドで再登録させることができません。 Remove the listener from EventIntegrator instance.
ExMovieClip
 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
[override] イベントをイベントフローに送出します。 Dispatches an event into the event flow.
ExMovieClip
 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
[override] EventIntegrator インスタンスに、特定のイベントタイプに対して登録されたリスナーがあるかどうかを確認します。 Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
ExMovieClip
 Inherited
hasFrame(frame:*):Boolean
指定したフレームが存在しているかどうかを返します。 Returns if the specified frame exists.
ExMovieClip
  
insertCommand(... commands):void
特定のイベントが送出された際に、自動実行させたい Command インスタンスをすでにリストに登録され、実行中の Command インスタンスの次の位置に追加します。 追加された Command インスタンスは、イベントが送出される直前に自動的に削除されます。
CastButton
  
navigateTo(location:* = null, windowTarget:String = null):void
指定されたシーン識別子、または URL に移動します。 引数が省略された場合には、予め CastButton インスタンスに指定されている sceneId プロパティまたは href プロパティが示す先に移動します。
CastButton
 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
addEventListener() メソッド経由で登録された全てのイベントリスナー登録を削除します。 完全に登録を削除しなかった場合には、削除されたイベントリスナーを restoreRemovedListeners() メソッドで復帰させることができます。 Remove the whole event listener registered via addEventListener() method.
ExMovieClip
 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
[override] EventIntegrator インスタンスからリスナーを削除します。 このメソッドを使用して削除されたリスナーは、restoreRemovedListeners() メソッドで再登録させることができます。 Remove the listener from EventIntegrator instance.
ExMovieClip
 Inherited
removeEventListener() メソッド、または removeAllListeners() メソッド経由で削除された全てイベントリスナーを再登録します。 Re-register the whole event listener removed via removeEventListener() or removeAllListeners() method.
ExMovieClip
 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
willTrigger(type:String):Boolean
[override] 指定されたイベントタイプについて、この EventIntegrator インスタンスまたはその祖先にイベントリスナーが登録されているかどうかを確認します。 Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
ExMovieClip
Protected Methods
 MethodDefined By
  
サブクラスで onCastMouseDown イベントハンドラメソッドの処理を override で実装したい場合に上書きします。 onCastMouseDown プロパティに、別のメソッドを設定された場合は無効化されます。
CastButton
  
サブクラスで onCastMouseUp イベントハンドラメソッドの処理を override で実装したい場合に上書きします。 onCastMouseUp プロパティに、別のメソッドを設定された場合は無効化されます。
CastButton
  
サブクラスで onCastRollOut イベントハンドラメソッドの処理を override で実装したい場合に上書きします。 onCastRollOut プロパティに、別のメソッドを設定された場合は無効化されます。
CastButton
  
サブクラスで onCastRollOver イベントハンドラメソッドの処理を override で実装したい場合に上書きします。 onCastRollOver プロパティに、別のメソッドを設定された場合は無効化されます。
CastButton
Events
 Event Summary Defined By
  オブジェクトの buttonEnabled プロパティの値が変更されたときに送出されます。CastButton
  Flash Player ウィンドウの CastButton インスタンスの上でユーザーがポインティングデバイスのボタンを押すと送出されます。 このイベント処理の実行中には、addCommand() メソッド、及び insertCommand() メソッドによるコマンドの同期処理が行えます。 Dispatched when a user presses the pointing device button over an CastButton instance.CastButton
  ユーザーが CastButton インスタンスからポインティングデバイスを離したときに送出されます。 このイベント処理の実行中には、addCommand() メソッド、及び insertCommand() メソッドによるコマンドの同期処理が行えます。 Dispatched when a user releases the pointing device button over an CastButton instance.CastButton
  ユーザーが CastButton インスタンスからポインティングデバイスを離したときに送出されます。 このイベント処理の実行中には、addCommand() メソッド、及び insertCommand() メソッドによるコマンドの同期処理が行えます。 Dispatched when the user moves a pointing device away from an CastButton instance.CastButton
  ユーザーが CastButton インスタンスにポインティングデバイスを合わせたときに送出されます。 このイベント処理の実行中には、addCommand() メソッド、及び insertCommand() メソッドによるコマンドの同期処理が行えます。 Dispatched when the user moves a pointing device away from an CastButton instance.CastButton
  CastButton インスタンスと関連付けられた Progression インスタンスのシーン状態に対応して、ボタンの状態が変更されたときに送出されます。CastButton
  CastButton インスタンスと Progression インスタンスとの関連付けが更新されたときに送出されます。CastButton
Property Detail
accessKeyproperty
accessKey:String

ボタンの機能をキーボードから使用するためのアクセスキーを取得または設定します。 設定できるキーはアルファベットの A ~ Z までの値です。


Implementation
    public function get accessKey():String
    public function set accessKey(value:String):void
buttonEnabledproperty 
buttonEnabled:Boolean

ボタンモードを有効化するかどうかを取得または設定します。


Implementation
    public function get buttonEnabled():Boolean
    public function set buttonEnabled(value:Boolean):void
buttonModeproperty 
buttonMode:Boolean[override]


Implementation
    public function get buttonMode():Boolean
    public function set buttonMode(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
hrefproperty 
href:String

ボタンがクリックされた時の移動先の URL を取得または設定します。 sceneId プロパティと href プロパティが両方とも設定されている場合には、href プロパティの設定が優先されます。


Implementation
    public function get href():String
    public function set href(value:String):void
isChildproperty 
isChild:Boolean  [read-only]

sceneId プロパティに設定されているシーン識別子の示すシーンと現在のシーンを比較して、自身が子シーンを示しているかどうかを取得します。


Implementation
    public function get isChild():Boolean
isCurrentproperty 
isCurrent:Boolean  [read-only]

sceneId プロパティに設定されているシーン識別子の示すシーンと現在のシーンを比較して、自身がカレントシーンを示しているかどうかを取得します。


Implementation
    public function get isCurrent():Boolean
isMouseDownproperty 
isMouseDown:Boolean  [read-only]

CastButton インスタンスでポインティングデバイスのボタンを押されているかどうかを取得します。


Implementation
    public function get isMouseDown():Boolean
isParentproperty 
isParent:Boolean  [read-only]

sceneId プロパティに設定されているシーン識別子の示すシーンと現在のシーンを比較して、自身が親シーンを示しているかどうかを取得します。


Implementation
    public function get isParent():Boolean
isRollOverproperty 
isRollOver:Boolean  [read-only]

CastButton インスタンスにポインティングデバイスが合わされているかどうかを取得します。


Implementation
    public function get isRollOver():Boolean
navigateURLproperty 
navigateURL:String  [read-only]

現在のボタンの移動先 URL を示すストリングを取得します。 この値はブラウザ上で実行した際に sceneId プロパティと href プロパティの値から決定されます。


Implementation
    public function get navigateURL():String
onCastAddedproperty 
onCastAdded:Function


Implementation
    public function get onCastAdded():Function
    public function set onCastAdded(value:Function):void
onCastMouseDownproperty 
onCastMouseDown:Function

CastButton インスタンスが CastMouseEvent.CAST_MOUSE_DOWN イベントを受け取った場合に呼び出されるイベントハンドラメソッドを取得または設定します。 このイベント処理の実行中には、addCommand() メソッド、及び insertCommand() メソッドによるコマンドの同期処理が行えます。


Implementation
    public function get onCastMouseDown():Function
    public function set onCastMouseDown(value:Function):void
onCastMouseUpproperty 
onCastMouseUp:Function

CastButton インスタンスが CastMouseEvent.CAST_MOUSE_UP イベントを受け取った場合に呼び出されるイベントハンドラメソッドを取得または設定します。 このイベント処理の実行中には、addCommand() メソッド、及び insertCommand() メソッドによるコマンドの同期処理が行えます。


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


Implementation
    public function get onCastRemoved():Function
    public function set onCastRemoved(value:Function):void
onCastRollOutproperty 
onCastRollOut:Function

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


Implementation
    public function get onCastRollOut():Function
    public function set onCastRollOut(value:Function):void
onCastRollOverproperty 
onCastRollOver:Function

CastButton インスタンスが CastMouseEvent.CAST_ROLL_OVER イベントを受け取った場合に呼び出されるイベントハンドラメソッドを取得または設定します。 このイベント処理の実行中には、addCommand() メソッド、及び insertCommand() メソッドによるコマンドの同期処理が行えます。


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

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


Implementation
    public function get parallelMode():Boolean
    public function set parallelMode(value:Boolean):void
progressionproperty 
progression:Progression  [read-only]

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


Implementation
    public function get progression():Progression
sceneIdproperty 
sceneId:SceneId

ボタンがクリックされた時の移動先を示すシーン識別子を取得または設定します。 sceneId プロパティと href プロパティが両方とも設定されている場合には、href プロパティの設定が優先されます。


Implementation
    public function get sceneId():SceneId
    public function set sceneId(value:SceneId):void
toolTipproperty 
toolTip:ToolTip  [read-only]

このオブジェクトに関連付けられている ToolTip インスタンスを取得します。


Implementation
    public function get toolTip():ToolTip
uiContextMenuproperty 
uiContextMenu:CastButtonContextMenu  [read-only]

このオブジェクトに関連付けられている CastButtonContextMenu インスタンスを取得します。


Implementation
    public function get uiContextMenu():CastButtonContextMenu
useHandCursorproperty 
useHandCursor:Boolean[override]


Implementation
    public function get useHandCursor():Boolean
    public function set useHandCursor(value:Boolean):void
windowTargetproperty 
windowTarget:String

ボタンがクリックされた時の移動先を開くウィンドウ名を取得または設定します。 この値が "_self" または null に設定されている場合には、現在のウィンドウを示します。


Implementation
    public function get windowTarget():String
    public function set windowTarget(value:String):void
Constructor Detail
CastButton()Constructor
public function CastButton(initObject:Object = null)

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

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

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

_onCastMouseUp()method 
protected function _onCastMouseUp():void

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

_onCastRollOut()method 
protected function _onCastRollOut():void

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

_onCastRollOver()method 
protected function _onCastRollOver():void

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

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登録したいコマンドを含む配列です。

navigateTo()method 
public function navigateTo(location:* = null, windowTarget:String = null):void

指定されたシーン識別子、または URL に移動します。 引数が省略された場合には、予め CastButton インスタンスに指定されている sceneId プロパティまたは href プロパティが示す先に移動します。

Parameters

location:* (default = null)移動先を示すシーン識別子、または URL です。
 
windowTarget:String (default = null)location パラメータで指定されたドキュメントを表示するブラウザウィンドウまたは HTML フレームです。

Event Detail
buttonEnabledChange Event
Event Object Type: jp.progression.events.CastEvent
CastEvent.type property = jp.progression.events.CastEvent.BUTTON_ENABLED_CHANGE

オブジェクトの buttonEnabled プロパティの値が変更されたときに送出されます。

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

Flash Player ウィンドウの CastButton インスタンスの上でユーザーがポインティングデバイスのボタンを押すと送出されます。 このイベント処理の実行中には、addCommand() メソッド、及び insertCommand() メソッドによるコマンドの同期処理が行えます。 Dispatched when a user presses the pointing device button over an CastButton instance.

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

ユーザーが CastButton インスタンスからポインティングデバイスを離したときに送出されます。 このイベント処理の実行中には、addCommand() メソッド、及び insertCommand() メソッドによるコマンドの同期処理が行えます。 Dispatched when a user releases the pointing device button over an CastButton instance.

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

ユーザーが CastButton インスタンスからポインティングデバイスを離したときに送出されます。 このイベント処理の実行中には、addCommand() メソッド、及び insertCommand() メソッドによるコマンドの同期処理が行えます。 Dispatched when the user moves a pointing device away from an CastButton instance.

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

ユーザーが CastButton インスタンスにポインティングデバイスを合わせたときに送出されます。 このイベント処理の実行中には、addCommand() メソッド、及び insertCommand() メソッドによるコマンドの同期処理が行えます。 Dispatched when the user moves a pointing device away from an CastButton instance.

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

CastButton インスタンスと関連付けられた Progression インスタンスのシーン状態に対応して、ボタンの状態が変更されたときに送出されます。

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

CastButton インスタンスと Progression インスタンスとの関連付けが更新されたときに送出されます。

update イベントオブジェクトの type プロパティ値を定義します。 The CastEvent.UPDATE constant defines the value of the type property of an update event object.
Examples
     // CastButton を作成する
     var cast:CastButton = new CastButton();
     cast.graphics.beginFill( 0xFF000000 );
     cast.graphics.drawRect( 0, 0, 100, 100 );
     cast.graphics.endFill();
     
     // Progression インスタンスを作成する
     var prog:Progression = new Progression( "index", stage );
     
     // ルートシーンのイベントハンドラメソッドを設定します。
     prog.root.onLoad = function():void {
         // コマンドを実行する
         this.addCommand(
             // CastButton を画面に表示する
             new AddChild( prog.container, cast )
         );
     };
     prog.root.onInit = function():void {
         // コマンドを実行する
         this.addCommand(
             // CastButton を画面から削除する
             new RemoveChild( prog.container, cast )
         );
     };
     
     // ルートシーンに移動します。
     prog.goto( new SceneId( "/index" ) );