パッケージfl.events
クラスpublic class ColorPickerEvent
継承ColorPickerEvent Inheritance Event Inheritance Object

言語バージョン : ActionScript 3.0
Player のバージョン : Flash Player 9.0.28.0

ColorPickerEvent クラスは、ColorPicker コンポーネントに関連するイベントを定義します。次のようなイベントがあります。

関連項目

ColorPicker


パブリック プロパティ
 プロパティ定義元
 Inheritedbubbles : Boolean
[read-only] イベントがバブリングイベントかどうかを示します。
Event
 Inheritedcancelable : Boolean
[read-only] イベントに関連付けられた動作を回避できるかどうかを示します。
Event
  color : uint
[read-only] イベントと関連付けられたカラー値を取得します。
ColorPickerEvent
 Inheritedconstructor : Object
特定のオブジェクトインスタンスのクラスオブジェクトまたはコンストラクタ関数への参照です。
Object
 InheritedcurrentTarget : Object
[read-only] イベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
Event
 InheritedeventPhase : uint
[read-only] イベントフローの現在の段階です。
Event
 Inheritedprototype : Object
[static] クラスまたは関数オブジェクトのプロトタイプオブジェクトへの参照です。
Object
 Inheritedtarget : Object
[read-only] イベントターゲットです。
Event
 Inheritedtype : String
[read-only] イベントのタイプです。
Event
パブリック メソッド
 メソッド定義元
  
新しい ColorPickerEvent オブジェクトを作成します。
ColorPickerEvent
  
ColorPickerEvent オブジェクトのコピーを作成して、各パラメータの値を元のパラメータの値と一致するように設定します。
ColorPickerEvent
 Inherited
formatToString(className:String, ... arguments):String
カスタム Event クラスに toString() メソッドを実装するためのユーティリティ関数です。
Event
 Inherited
オブジェクトに指定されたプロパティが定義されているかどうかを示します。
Object
 Inherited
イベントで preventDefault() が呼び出されたかどうかを確認します。
Event
 Inherited
Object クラスのインスタンスが、パラメータとして指定されたオブジェクトのプロトタイプチェーン内にあるかどうかを示します。
Object
 Inherited
イベントのデフォルトの動作をキャンセルできる場合に、その動作をキャンセルします。
Event
 Inherited
指定されたプロパティが存在し列挙できるかどうかを示します。
Object
 Inherited
ループ処理に対するダイナミックプロパティの可用性を設定します。
Object
 Inherited
イベントフローの現在のノードおよび後続するノードで、イベントリスナーが処理されないようにします。
Event
 Inherited
イベントフローの現在のノードに後続するノードで、イベントリスナーが処理されないようにします。
Event
  
ColorPickerEvent オブジェクトのすべてのプロパティを含んでいるストリングを返します。
ColorPickerEvent
 Inherited
指定されたオブジェクトのプリミティブな値を返します。
Object
パブリック 定数
 定数定義元
 InheritedACTIVATE : String = "activate"
[static] activate イベントオブジェクトの type プロパティ値を定義します。
Event
 InheritedADDED : String = "added"
[static] added イベントオブジェクトの type プロパティ値を定義します。
Event
 InheritedADDED_TO_STAGE : String = "addedToStage"
[static] addedToStage イベントオブジェクトの type プロパティ値を定義します。
Event
 InheritedCANCEL : String = "cancel"
[static] cancel イベントオブジェクトの type プロパティ値を定義します。
Event
  CHANGE : String = "change"
[static] change イベントオブジェクトの type プロパティ値を定義します。
ColorPickerEvent
 InheritedCLOSE : String = "close"
[static] close イベントオブジェクトの type プロパティ値を定義します。
Event
 InheritedCOMPLETE : String = "complete"
[static] complete イベントオブジェクトの type プロパティ値を定義します。
Event
 InheritedCONNECT : String = "connect"
[static] connect イベントオブジェクトの type プロパティ値を定義します。
Event
 InheritedDEACTIVATE : String = "deactivate"
[static] deactivate イベントオブジェクトの type プロパティ値を定義します。
Event
  ENTER : String = "enter"
[static] enter イベントオブジェクトの type プロパティ値を定義します。
ColorPickerEvent
 InheritedENTER_FRAME : String = "enterFrame"
[static] enterFrame イベントオブジェクトの type プロパティ値を定義します。
Event
 InheritedFULLSCREEN : String = "fullScreen"
[static] fullScreen イベントオブジェクトの type プロパティ値を定義します。
Event
 InheritedID3 : String = "id3"
[static] id3 イベントオブジェクトの type プロパティ値を定義します。
Event
 InheritedINIT : String = "init"
[static] init イベントオブジェクトの type プロパティの値を定義します。
Event
  ITEM_ROLL_OUT : String = "itemRollOut"
[static] itemRollOut イベントオブジェクトの type プロパティ値を定義します。
ColorPickerEvent
  ITEM_ROLL_OVER : String = "itemRollOver"
[static] itemRollOver イベントオブジェクトの type プロパティ値を定義します。
ColorPickerEvent
 InheritedMOUSE_LEAVE : String = "mouseLeave"
[static] mouseLeave イベントオブジェクトの type プロパティ値を定義します。
Event
 InheritedOPEN : String = "open"
[static] open イベントオブジェクトの type プロパティ値を定義します。
Event
 InheritedREMOVED : String = "removed"
[static] removed イベントオブジェクトの type プロパティ値を定義します。
Event
 InheritedREMOVED_FROM_STAGE : String = "removedFromStage"
[static] removedFromStage イベントオブジェクトの type プロパティ値を定義します。
Event
 InheritedRENDER : String = "render"
[static] render イベントオブジェクトの type プロパティ値を定義します。
Event
 InheritedRESIZE : String = "resize"
[static] resize イベントオブジェクトの type プロパティ値を定義します。
Event
 InheritedSCROLL : String = "scroll"
[static] scroll イベントオブジェクトの type プロパティ値を定義します。
Event
 InheritedSELECT : String = "select"
[static] select イベントオブジェクトの type プロパティ値を定義します。
Event
 InheritedSOUND_COMPLETE : String = "soundComplete"
[static] soundComplete イベントオブジェクトの type プロパティ値を定義します。
Event
 InheritedTAB_CHILDREN_CHANGE : String = "tabChildrenChange"
[static] tabChildrenChange イベントオブジェクトの type プロパティ値を定義します。
Event
 InheritedTAB_ENABLED_CHANGE : String = "tabEnabledChange"
[static] tabEnabledChange イベントオブジェクトの type プロパティ値を定義します。
Event
 InheritedTAB_INDEX_CHANGE : String = "tabIndexChange"
[static] tabIndexChange イベントオブジェクトの type プロパティ値を定義します。
Event
 InheritedUNLOAD : String = "unload"
[static] unload イベントオブジェクトの type プロパティ値を定義します。
Event
プロパティの詳細
colorプロパティ
color:uint  [read-only]

言語バージョン : ActionScript 3.0
Player のバージョン : Flash Player 9.0.28.0

イベントと関連付けられたカラー値を取得します。


実装
    public function get color():uint
コンストラクタの詳細
ColorPickerEvent()コンストラクタ
public function ColorPickerEvent(type:String, color:uint)

言語バージョン : ActionScript 3.0
Player のバージョン : Flash Player 9.0.28.0

新しい ColorPickerEvent オブジェクトを作成します。

パラメータ
type:String — 現在のイベントタイプを示します。
 
color:uint — 現在のイベントに関連付けられたカラーを示します。
メソッドの詳細
clone()メソッド
public override function clone():Event

言語バージョン : ActionScript 3.0
Player のバージョン : Flash Player 9.0.28.0

ColorPickerEvent オブジェクトのコピーを作成して、各パラメータの値を元のパラメータの値と一致するように設定します。

戻り値
Event — ColorPickerEvent インスタンスのコピーです。
toString()メソッド 
public override function toString():String

言語バージョン : ActionScript 3.0
Player のバージョン : Flash Player 9.0.28.0

ColorPickerEvent オブジェクトのすべてのプロパティを含んでいるストリングを返します。

戻り値
String — ColorPickerEvent オブジェクトのストリング表現です。
定数の詳細
CHANGE定数
public static const CHANGE:String = "change"

言語バージョン : ActionScript 3.0
Player のバージョン : Flash Player 9.0.28.0

type プロパティ (change イベントオブジェクト) の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblestrue
cancelabletrue
colorColorPicker コンポーネントの現在のカラー値。
currentTargetイベントリスナーで event オブジェクトをアクティブに処理しているオブジェクトです。
targetイベントを送出したオブジェクトです。ターゲットは、必ずしもイベントを受け取るオブジェクトではありません。イベントを受け取るオブジェクトにアクセスするには、currentTarget プロパティを使用します。




次の例では、選択された色の 16 進値を色が変更されたときに表示します。

import fl.controls.ColorPicker;
import fl.events.ColorPickerEvent;

var myColorPicker:ColorPicker = new ColorPicker();
myColorPicker.addEventListener(ColorPickerEvent.CHANGE, changeHandler);
myColorPicker.move(10, 10);
addChild(myColorPicker);

function changeHandler(event:ColorPickerEvent):void {
    trace("color changed:", event.color, "(#" + event.target.hexValue + ")");
}
ENTER定数 
public static const ENTER:String = "enter"

言語バージョン : ActionScript 3.0
Player のバージョン : Flash Player 9.0.28.0

type プロパティ (enter イベントオブジェクト) の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblestrue
cancelabletrue
colorColorPicker コンポーネントの現在のカラー値。
currentTargetイベントリスナーで event オブジェクトをアクティブに処理しているオブジェクトです。
targetイベントを送出したオブジェクトです。ターゲットは、必ずしもイベントを受け取るオブジェクトではありません。イベントを受け取るオブジェクトにアクセスするには、currentTarget プロパティを使用します。

ITEM_ROLL_OUT定数 
public static const ITEM_ROLL_OUT:String = "itemRollOut"

言語バージョン : ActionScript 3.0
Player のバージョン : Flash Player 9.0.28.0

type プロパティ (itemRollOut イベントオブジェクト) の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblestrue
cancelabletrue
colorColorPicker コンポーネントの現在のカラー値。
currentTargetイベントリスナーで event オブジェクトをアクティブに処理しているオブジェクトです。
targetイベントを送出したオブジェクトです。ターゲットは、必ずしもイベントを受け取るオブジェクトではありません。イベントを受け取るオブジェクトにアクセスするには、currentTarget プロパティを使用します。

関連項目

ITEM_ROLL_OVER定数 
public static const ITEM_ROLL_OVER:String = "itemRollOver"

言語バージョン : ActionScript 3.0
Player のバージョン : Flash Player 9.0.28.0

type プロパティ (itemRollOver イベントオブジェクト) の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
bubblestrue
cancelabletrue
colorColorPicker コンポーネントの現在のカラー値。
currentTargetイベントリスナーで event オブジェクトをアクティブに処理しているオブジェクトです。
targetイベントを送出したオブジェクトです。ターゲットは、必ずしもイベントを受け取るオブジェクトではありません。イベントを受け取るオブジェクトにアクセスするには、currentTarget プロパティを使用します。

関連項目





 

このページに新しいコメントが追加された場合に、電子メールでの通知を希望する。 | コメントレポート

現在のページ: http://livedocs.adobe.com/flash/9.0_jp/ActionScriptLangRefV3/fl/events/ColorPickerEvent.html