Packagejp.progression.events
Classpublic class CastMouseEvent
InheritanceCastMouseEvent Inheritance flash.events.MouseEvent

CastButton クラスを継承したオブジェクトで MouseEvent が送出された際に CastMouseEvent オブジェクトが送出されます。

View the examples



Public Methods
 MethodDefined By
  
CastMouseEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, localX:Number = 0, localY:Number = 0, relatedObject:InteractiveObject = null, ctrlKey:Boolean = false, altKey:Boolean = false, shiftKey:Boolean = false, buttonDown:Boolean = false, delta:int = 0)
新しい CastMouseEvent インスタンスを作成します。 Creates a new CastMouseEvent object.
CastMouseEvent
  
clone():Event
[override] CastMouseEvent インスタンスのコピーを作成して、各プロパティの値を元のプロパティの値と一致するように設定します。 Duplicates an instance of an CastMouseEvent subclass.
CastMouseEvent
  
toString():String
[override] 指定されたオブジェクトのストリング表現を返します。 Returns the string representation of the specified object.
CastMouseEvent
Public Constants
 ConstantDefined By
  CAST_MOUSE_DOWN : String = castMouseDown
[static] castMouseDown イベントオブジェクトの type プロパティ値を定義します。 The CastMouseEvent.CAST_MOUSE_DOWN constant defines the value of the type property of an castMouseDown event object.
CastMouseEvent
  CAST_MOUSE_UP : String = castMouseUp
[static] castMouseUp イベントオブジェクトの type プロパティ値を定義します。 The CastMouseEvent.CAST_MOUSE_UP constant defines the value of the type property of an castMouseUp event object.
CastMouseEvent
  CAST_ROLL_OUT : String = castRollOut
[static] castRollOut イベントオブジェクトの type プロパティ値を定義します。 The CastMouseEvent.CAST_ROLL_OUT constant defines the value of the type property of an castRollOut event object.
CastMouseEvent
  CAST_ROLL_OVER : String = castRollOver
[static] castRollOver イベントオブジェクトの type プロパティ値を定義します。 The CastMouseEvent.CAST_ROLL_OVER constant defines the value of the type property of an castRollOver event object.
CastMouseEvent
Constructor Detail
CastMouseEvent()Constructor
public function CastMouseEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, localX:Number = 0, localY:Number = 0, relatedObject:InteractiveObject = null, ctrlKey:Boolean = false, altKey:Boolean = false, shiftKey:Boolean = false, buttonDown:Boolean = false, delta:int = 0)

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

Parameters
type:StringCastMouseEvent.type としてアクセス可能なイベントタイプです。 The type of the event, accessible as CastMouseEvent.type.
 
bubbles:Boolean (default = false)CastMouseEvent インスタンスがイベントフローのバブリング段階で処理されるかどうかを判断します。デフォルト値は false です。 Determines whether the CastMouseEvent object participates in the bubbling stage of the event flow. The default value is false.
 
cancelable:Boolean (default = false)CastMouseEvent インスタンスがキャンセル可能かどうかを判断します。デフォルト値は false です。 Determines whether the CastMouseEvent object can be canceled. The default values is false.
 
localX:Number (default = 0)スプライトを基準とするイベント発生位置の水平座標です。 The horizontal coordinate at which the event occurred relative to the containing sprite.
 
localY:Number (default = 0)スプライトを基準とするイベント発生位置の垂直座標です。 The vertical coordinate at which the event occurred relative to the containing sprite.
 
relatedObject:InteractiveObject (default = null)イベントの影響を受ける補完的な InteractiveObject インスタンスです。たとえば、mouseOut イベントが発生した場合、relatedObject はポインティングデバイスが現在指している表示リストオブジェクトを表します。 The complementary InteractiveObject instance that is affected by the event. For example, when a mouseOut event occurs, relatedObject represents the display list object to which the pointing device now points.
 
ctrlKey:Boolean (default = false)Ctrl キーがアクティブになっているかどうかを示します。 On Windows, indicates whether the Ctrl key is activated. On Mac, indicates whether either the Ctrl key or the Command key is activated.
 
altKey:Boolean (default = false)将来の使用のために予約されています。 Indicates whether the Alt key is activated (Windows only).
 
shiftKey:Boolean (default = false)Shift キーがアクティブになっているかどうかを示します。 Indicates whether the Shift key is activated.
 
buttonDown:Boolean (default = false)マウスの主ボタンが押されているか押されていないかを示します。 Indicates whether the primary mouse button is pressed.
 
delta:int (default = 0)ユーザーがマウスホイールを 1 目盛り回すごとにスクロールする行数を示します。正の delta 値は上方向へのスクロールを表します。負の値は下方向へのスクロールを表します。一般的な値は 1 ~ 3 の範囲ですが、ホイールの回転が速くなると、delta の値は大きくなります。このパラメータは、CastMouseEvent.mouseWheel イベントのみで使用されます。 Indicates how many lines should be scrolled for each unit the user rotates the mouse wheel. A positive delta value indicates an upward scroll; a negative value indicates a downward scroll. Typical values are 1 to 3, but faster rotation may produce larger values. This parameter is used only for the MouseEvent.mouseWheel event.
Method Detail
clone()method
override public function clone():Event

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

Returns
Event元のオブジェクトと同じプロパティ値を含む新しい CastMouseEvent インスタンスです。 A new CastMouseEvent 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
CAST_MOUSE_DOWNConstant
public static const CAST_MOUSE_DOWN:String = castMouseDown

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

CAST_MOUSE_UPConstant 
public static const CAST_MOUSE_UP:String = castMouseUp

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

CAST_ROLL_OUTConstant 
public static const CAST_ROLL_OUT:String = castRollOut

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

CAST_ROLL_OVERConstant 
public static const CAST_ROLL_OVER:String = castRollOver

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

Examples