패키지fl.events
클래스public class ColorPickerEvent
상속ColorPickerEvent Inheritance Event Inheritance Object

언어 버전 : ActionScript 3.0
Player 버전 : Flash Player 9.0.28.0

ColorPickerEvent 클래스는 ColorPicker 구성 요소와 연관된 이벤트를 정의합니다. 이러한 이벤트는 다음과 같습니다.

참고 사항

ColorPicker


Public 속성
 속성다음에 의해 정의됨
 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
Public 메서드
 메서드다음에 의해 정의됨
  
새 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
Public 상수
 상수다음에 의해 정의됨
 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

change 이벤트 객체의 type 속성 값을 정의합니다.

이 이벤트에는 다음과 같은 속성이 있습니다.

속성
bubblestrue
cancelabletrue
colorColorPicker 구성 요소의 현재 색상 값입니다.
currentTarget이벤트 리스너를 통해 이벤트 객체를 처리하고 있는 객체입니다.
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

enter 이벤트 객체의 type 속성 값을 정의합니다.

이 이벤트에는 다음과 같은 속성이 있습니다.

속성
bubblestrue
cancelabletrue
colorColorPicker 구성 요소의 현재 색상 값입니다.
currentTarget이벤트 리스너를 통해 이벤트 객체를 처리하고 있는 객체입니다.
target이벤트를 전달한 객체입니다. 이벤트를 수신하는 객체와는 다를 수도 있습니다. 이벤트를 수신하는 객체에 액세스하려면 currentTarget 속성을 사용합니다.

ITEM_ROLL_OUT상수 
public static const ITEM_ROLL_OUT:String = "itemRollOut"

언어 버전 : ActionScript 3.0
Player 버전 : Flash Player 9.0.28.0

itemRollOut 이벤트 객체의 type 속성 값을 정의합니다.

이 이벤트에는 다음과 같은 속성이 있습니다.

속성
bubblestrue
cancelabletrue
colorColorPicker 구성 요소의 현재 색상 값입니다.
currentTarget이벤트 리스너를 통해 이벤트 객체를 처리하고 있는 객체입니다.
target이벤트를 전달한 객체입니다. 이벤트를 수신하는 객체와는 다를 수도 있습니다. 이벤트를 수신하는 객체에 액세스하려면 currentTarget 속성을 사용합니다.

참고 사항

ITEM_ROLL_OVER상수 
public static const ITEM_ROLL_OVER:String = "itemRollOver"

언어 버전 : ActionScript 3.0
Player 버전 : Flash Player 9.0.28.0

itemRollOver 이벤트 객체의 type 속성 값을 정의합니다.

이 이벤트에는 다음과 같은 속성이 있습니다.

속성
bubblestrue
cancelabletrue
colorColorPicker 구성 요소의 현재 색상 값입니다.
currentTarget이벤트 리스너를 통해 이벤트 객체를 처리하고 있는 객체입니다.
target이벤트를 전달한 객체입니다. 이벤트를 수신하는 객체와는 다를 수도 있습니다. 이벤트를 수신하는 객체에 액세스하려면 currentTarget 속성을 사용합니다.

참고 사항





 

이 페이지에 의견 추가되면 전자 메일 알림 받기 | 의견 보고서

현재 페이지: http://livedocs.adobe.com/flash/9.0_kr/ActionScriptLangRefV3/fl/events/ColorPickerEvent.html