Pacote | mx.events |
Classe | public class SliderEvent |
Herança | SliderEvent Event Object |
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 3 |
Versões de runtime: | Flash Player 9, AIR 1.1 |
change
, thumbDrag
,
thumbPress
, and thumbRelease
events
of the HSlider and VSlider classes.
Mais exemplos
Elementos da API relacionados
mx.controls.VSlider
mx.controls.sliderClasses.Slider
mx.events.SliderEventClickTarget
Propriedade | Definido por | ||
---|---|---|---|
bubbles : Boolean [somente leitura]
Indica se um evento é do tipo bubbling. | Event | ||
cancelable : Boolean [somente leitura]
Indica se o comportamento associado ao evento pode ser impedido. | Event | ||
clickTarget : String
Specifies whether the slider track or a slider thumb was pressed. | SliderEvent | ||
constructor : Object
Uma referência ao objeto de classe ou à função de construtor de uma determinada ocorrência de objeto. | Object | ||
currentTarget : Object [somente leitura]
O objeto que está processando ativamente o objeto Event com um ouvinte de evento. | Event | ||
eventPhase : uint [somente leitura]
A fase atual no fluxo de eventos. | Event | ||
keyCode : int
If the event was triggered by a key press, the keycode for the key. | SliderEvent | ||
target : Object [somente leitura]
O destino de evento. | 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 [somente leitura]
O tipo de evento. | Event | ||
value : Number
The new value of the slider. | SliderEvent |
Método | Definido por | ||
---|---|---|---|
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 | ||
Duplica uma ocorrência de uma subclasse Event. | Event | ||
Uma função de utilitário para implementar o método toString() em classes ActionScript 3.0 Event personalizadas. | Event | ||
Indica se um objeto tem uma propriedade especificada definida. | Object | ||
Verifica se o método preventDefault() foi chamado no evento. | Event | ||
Indica se uma ocorrência da classe Object está na cadeia de protótipos do objeto especificado como o parâmetro. | Object | ||
Cancela um comportamento padrão de evento se esse comportamento puder ser cancelado. | Event | ||
Indica se a propriedade especificada existe e é enumerável. | Object | ||
Define a disponibilidade de uma propriedade dinâmica para operações de repetição. | Object | ||
Impede o processamento de qualquer ouvinte de evento no nó atual e qualquer nó subsequente no fluxo de eventos. | Event | ||
Impede o processamento de algum ouvinte de evento em nós subsequentes ao nó atual no fluxo de eventos. | Event | ||
Retorna a representação da string deste objeto, formatado segundo as convenções específicas para a localidade. | Object | ||
Retorna uma string que contém todas as propriedades do objeto Event. | Event | ||
Retorna o valor primitivo do objeto especificado. | Object |
Constante | Definido por | ||
---|---|---|---|
CHANGE : String = "change" [estático]
The SliderEvent.CHANGE constant defines the value of the
type property of the event object for a change event. | SliderEvent | ||
THUMB_DRAG : String = "thumbDrag" [estático]
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" [estático]
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" [estático]
The SliderEvent.THUMB_RELEASE constant defines the value of the
type property of the event object for a thumbRelease event. | SliderEvent |
clickTarget | propriedade |
public var clickTarget:String
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 3 |
Versões de runtime: | 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
.
Elementos da API relacionados
keyCode | propriedade |
public var keyCode:int
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 3 |
Versões de runtime: | Flash Player 9, AIR 1.1 |
If the event was triggered by a key press, the keycode for the key.
thumbIndex | propriedade |
public var thumbIndex:int
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 3 |
Versões de runtime: | 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 | propriedade |
public var triggerEvent:Event
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 3 |
Versões de runtime: | 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.
Elementos da API relacionados
value | propriedade |
public var value:Number
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 3 |
Versões de runtime: | Flash Player 9, AIR 1.1 |
The new value of the slider.
SliderEvent | () | Construtor |
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)
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 3 |
Versões de runtime: | Flash Player 9, AIR 1.1 |
Constructor.
Parâmetrostype: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 | Constante |
public static const CHANGE:String = "change"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 3 |
Versões de runtime: | 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 | Constante |
public static const THUMB_DRAG:String = "thumbDrag"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 3 |
Versões de runtime: | 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 | Constante |
public static const THUMB_PRESS:String = "thumbPress"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 3 |
Versões de runtime: | 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 | Constante |
public static const THUMB_RELEASE:String = "thumbRelease"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 3 |
Versões de runtime: | 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. |
Wed Jun 13 2018, 11:10 AM Z