Paquete | mx.events |
Clase | public class SliderEvent |
Herencia | SliderEvent Event Object |
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
change
, thumbDrag
,
thumbPress
, and thumbRelease
events
of the HSlider and VSlider classes.
Más ejemplos
Elementos de API relacionados
mx.controls.VSlider
mx.controls.sliderClasses.Slider
mx.events.SliderEventClickTarget
Propiedad | Definido por | ||
---|---|---|---|
bubbles : Boolean [solo lectura]
Indica si un evento es un evento de propagación. | Event | ||
cancelable : Boolean [solo lectura]
Indica si se puede evitar el comportamiento asociado al evento. | Event | ||
clickTarget : String
Specifies whether the slider track or a slider thumb was pressed. | SliderEvent | ||
constructor : Object
Una referencia a la clase de objeto o función constructora para una instancia de objeto determinada. | Object | ||
currentTarget : Object [solo lectura]
Objeto que procesa de forma activa el objeto de evento con un detector de eventos. | Event | ||
eventPhase : uint [solo lectura]
La fase actual en el flujo del evento. | Event | ||
keyCode : int
If the event was triggered by a key press, the keycode for the key. | SliderEvent | ||
target : Object [solo lectura]
El destino del 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 [solo lectura]
El 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 una instancia de la subclase Event. | Event | ||
Una función de utilidad para implementar el método toString() en las clases Event personalizadas de ActionScript 3.0. | Event | ||
Indica si un objeto tiene definida una propiedad especificada. | Object | ||
Comprueba si se ha llamado a preventDefault() en el evento. | Event | ||
Indica si hay una instancia de la clase Object en la cadena de prototipo del objeto especificado como parámetro. | Object | ||
Cancela el comportamiento predeterminado de un evento si es posible cancelarlo. | Event | ||
Indica si existe la propiedad especificada y si es enumerable. | Object | ||
Establece la disponibilidad de una propiedad dinámica para operaciones de bucle. | Object | ||
Impide el proceso de cualquier detector de eventos en el nodo actual y los nodos siguientes en el flujo del evento. | Event | ||
Impide el proceso de cualquier detector de eventos en nodos siguientes al nodo actual. | Event | ||
Devuelve la representación de cadena de este objeto, con formato según las convenciones específicas de configuración regional. | Object | ||
Devuelve una cadena que contiene todas las propiedades del objeto de evento. | Event | ||
Devuelve el valor simple del objeto especificado. | Object |
Constante | Definido por | ||
---|---|---|---|
CHANGE : String = "change" [estática]
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ática]
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ática]
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ática]
The SliderEvent.THUMB_RELEASE constant defines the value of the
type property of the event object for a thumbRelease event. | SliderEvent |
clickTarget | propiedad |
public var clickTarget:String
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | 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 de API relacionados
keyCode | propiedad |
public var keyCode:int
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
If the event was triggered by a key press, the keycode for the key.
thumbIndex | propiedad |
public var thumbIndex:int
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | 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 | propiedad |
public var triggerEvent:Event
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | 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 de API relacionados
value | propiedad |
public var value:Number
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
The new value of the slider.
SliderEvent | () | Información sobre |
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)
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | 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"
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | 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"
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | 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"
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | 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"
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | 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, 02:12 PM Z