패키지 | mx.events |
클래스 | public class SliderEvent |
상속 | SliderEvent Event Object |
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
change
, thumbDrag
,
thumbPress
, and thumbRelease
events
of the HSlider and VSlider classes.
기타 예제
관련 API 요소
mx.controls.VSlider
mx.controls.sliderClasses.Slider
mx.events.SliderEventClickTarget
속성 | 정의 주체 | ||
---|---|---|---|
bubbles : Boolean [읽기 전용]
이벤트가 버블링 이벤트인지 여부를 나타냅니다. | Event | ||
cancelable : Boolean [읽기 전용]
해당 이벤트와 연관된 비헤이비어를 차단할 수 있는지 여부를 나타냅니다. | Event | ||
clickTarget : String
Specifies whether the slider track or a slider thumb was pressed. | SliderEvent | ||
constructor : Object
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다. | Object | ||
currentTarget : Object [읽기 전용]
이벤트 리스너를 통해 Event 객체를 처리하고 있는 객체입니다. | Event | ||
eventPhase : uint [읽기 전용]
이벤트 흐름에서 현재 단계입니다. | Event | ||
keyCode : int
If the event was triggered by a key press, the keycode for the key. | SliderEvent | ||
target : Object [읽기 전용]
이벤트 대상입니다. | Event | ||
thumbIndex : int
The zero-based index of the thumb whose position has changed. | SliderEvent | ||
triggerEvent : Event
Indicates the type of input action. | SliderEvent | ||
type : String [읽기 전용]
이벤트 유형입니다. | Event | ||
value : Number
The new value of the slider. | SliderEvent |
메서드 | 정의 주체 | ||
---|---|---|---|
SliderEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, thumbIndex:int = -1, value:Number = NaN, triggerEvent:Event = null, clickTarget:String = null, keyCode:int = -1)
Constructor. | SliderEvent | ||
Event 하위 클래스의 인스턴스를 복제합니다. | Event | ||
사용자 정의 ActionScript 3.0 Event 클래스에서 toString() 메서드를 구현하기 위한 유틸리티 함수입니다. | Event | ||
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | ||
이벤트에서 preventDefault() 메서드가 호출되었는지 여부를 확인합니다. | Event | ||
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | ||
이벤트의 기본 비헤이비어를 취소할 수 있는 경우, 그 비헤이비어를 취소합니다. | Event | ||
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | ||
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | ||
이벤트 흐름에서 현재 노드 및 그 후속 노드에 있는 모든 이벤트 리스너가 처리되지 않도록 합니다. | Event | ||
이벤트 흐름에서 현재 노드의 후속 노드에 있는 모든 이벤트 리스너가 처리되지 않도록 합니다. | Event | ||
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | ||
Event 객체의 속성이 모두 포함된 문자열을 반환합니다. | Event | ||
지정된 객체의 프리미티브 값을 반환합니다. | Object |
상수 | 정의 주체 | ||
---|---|---|---|
CHANGE : String = "change" [정적]
The SliderEvent.CHANGE constant defines the value of the
type property of the event object for a change event. | SliderEvent | ||
THUMB_DRAG : String = "thumbDrag" [정적]
The SliderEvent.THUMB_DRAG constant defines the value of the
type property of the event object for a thumbDrag event. | SliderEvent | ||
THUMB_PRESS : String = "thumbPress" [정적]
The SliderEvent.THUMB_PRESS constant defines the value of the
type property of the event object for a thumbPress event. | SliderEvent | ||
THUMB_RELEASE : String = "thumbRelease" [정적]
The SliderEvent.THUMB_RELEASE constant defines the value of the
type property of the event object for a thumbRelease event. | SliderEvent |
clickTarget | 속성 |
public var clickTarget:String
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Specifies whether the slider track or a slider thumb was pressed.
This property can have one of two values:
SliderEventClickTarget.THUMB
or SliderEventClickTarget.TRACK
.
관련 API 요소
keyCode | 속성 |
public var keyCode:int
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
If the event was triggered by a key press, the keycode for the key.
thumbIndex | 속성 |
public var thumbIndex:int
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The zero-based index of the thumb whose position has changed. If there is only a single thumb, the value is 0. If there are two thumbs, the value is 0 or 1.
triggerEvent | 속성 |
public var triggerEvent:Event
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Indicates the type of input action. The value is an event object of type flash.events.MouseEvent or flash.events.KeyboardEvent.
관련 API 요소
value | 속성 |
public var value:Number
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The new value of the slider.
SliderEvent | () | 생성자 |
public function SliderEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, thumbIndex:int = -1, value:Number = NaN, triggerEvent:Event = null, clickTarget:String = null, keyCode:int = -1)
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Constructor.
매개 변수type:String — The event type; indicates the action that caused the event.
| |
bubbles:Boolean (default = false ) — Specifies whether the event can bubble
up the display list hierarchy.
| |
cancelable:Boolean (default = false ) — Specifies whether the behavior
associated with the event can be prevented.
| |
thumbIndex:int (default = -1 ) — The zero-based index of the thumb
whose position has changed.
| |
value:Number (default = NaN ) — The new value of the slider.
| |
triggerEvent:Event (default = null ) — The type of input action.
The value is an object of type flash.events.MouseEvent
or flash.events.KeyboardEvent.
| |
clickTarget:String (default = null ) — Whether the slider track or a slider thumb was pressed.
| |
keyCode:int (default = -1 ) — If the event was triggered by a key press,
the keycode for the key.
|
CHANGE | 상수 |
public static const CHANGE:String = "change"
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The SliderEvent.CHANGE
constant defines the value of the
type
property of the event object for a change
event.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
clickTarget | Specifies whether the slider track or a slider thumb was pressed. |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget . |
keyCode | If the event was triggered by a key press, the keycode for the key. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
thumbIndex | The zero-based index of the thumb whose position has changed. |
triggerEvent | Contains a value indicating the type of input action. The value is an event object of type flash.events.MouseEvent or flash.events.KeyboardEvent. |
value | The new value of the slider. |
THUMB_DRAG | 상수 |
public static const THUMB_DRAG:String = "thumbDrag"
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The SliderEvent.THUMB_DRAG
constant defines the value of the
type
property of the event object for a thumbDrag
event.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
clickTarget | Specifies whether the slider track or a slider thumb was pressed. |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget . |
keyCode | If the event was triggered by a key press, the keycode for the key. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
thumbIndex | The zero-based index of the thumb whose position has changed. |
triggerEvent | Contains a value indicating the type of input action. The value is an event object of type flash.events.MouseEvent or flash.events.KeyboardEvent. |
value | The new value of the slider. |
THUMB_PRESS | 상수 |
public static const THUMB_PRESS:String = "thumbPress"
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The SliderEvent.THUMB_PRESS
constant defines the value of the
type
property of the event object for a thumbPress
event.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
clickTarget | Specifies whether the slider track or a slider thumb was pressed. |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget . |
keyCode | If the event was triggered by a key press, the keycode for the key. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
thumbIndex | The zero-based index of the thumb whose position has changed. |
triggerEvent | Contains a value indicating the type of input action. The value is an event object of type flash.events.MouseEvent or flash.events.KeyboardEvent. |
value | The new value of the slider. |
THUMB_RELEASE | 상수 |
public static const THUMB_RELEASE:String = "thumbRelease"
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The SliderEvent.THUMB_RELEASE
constant defines the value of the
type
property of the event object for a thumbRelease
event.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
clickTarget | Specifies whether the slider track or a slider thumb was pressed. |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget . |
keyCode | If the event was triggered by a key press, the keycode for the key. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
thumbIndex | The zero-based index of the thumb whose position has changed. |
triggerEvent | Contains a value indicating the type of input action. The value is an event object of type flash.events.MouseEvent or flash.events.KeyboardEvent. |
value | The new value of the slider. |
Tue Jun 12 2018, 03:17 PM Z