| Pacchetto | mx.events |
| Classe | public class SliderEvent |
| Ereditarietà | SliderEvent Event Object |
| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Flex 3 |
| Versioni runtime: | Flash Player 9, AIR 1.1 |
change, thumbDrag,
thumbPress, and thumbRelease events
of the HSlider and VSlider classes.
Altri esempi
Elementi API correlati
mx.controls.VSlider
mx.controls.sliderClasses.Slider
mx.events.SliderEventClickTarget
| Proprietà | Definito da | ||
|---|---|---|---|
![]() | bubbles : Boolean [sola lettura]
Indica se un evento è un evento di bubbling. | Event | |
![]() | cancelable : Boolean [sola lettura]
Indica se il comportamento associato all'evento può essere impedito. | Event | |
| clickTarget : String
Specifies whether the slider track or a slider thumb was pressed. | SliderEvent | ||
![]() | constructor : Object
Un riferimento all'oggetto classe o alla funzione di costruzione per una determinata istanza di oggetto. | Object | |
![]() | currentTarget : Object [sola lettura]
L'oggetto che elabora attivamente l'oggetto Event con un listener di eventi. | Event | |
![]() | eventPhase : uint [sola lettura]
La fase attuale del flusso di eventi. | Event | |
| keyCode : int
If the event was triggered by a key press, the keycode for the key. | SliderEvent | ||
![]() | target : Object [sola lettura]
Il target dell'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 [sola lettura]
Il tipo di evento. | Event | |
| value : Number
The new value of the slider. | SliderEvent | ||
| Metodo | Definito da | ||
|---|---|---|---|
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 un'istanza di una sottoclasse Event. | Event | |
![]() |
Una funzione dell'utilità per l'implementazione del metodo toString() in classi Event ActionScript 3.0 personalizzate. | Event | |
![]() |
Indica se per un oggetto è definita una proprietà specifica. | Object | |
![]() |
Verifica se sull'evento è stato chiamato il metodo preventDefault(). | Event | |
![]() |
Indica se un'istanza della classe Object si trova nella catena di prototipi dell'oggetto specificato come parametro. | Object | |
![]() |
Annulla il comportamento predefinito di un evento se tale comportamento può essere annullato. | Event | |
![]() |
Indica se la proprietà specificata esiste ed è enumerabile. | Object | |
![]() |
Imposta la disponibilità di una proprietà dinamica per le operazioni cicliche. | Object | |
![]() |
Impedisce l'elaborazione di tutti i listener di eventi nel nodo corrente e in tutti i nodi successivi del flusso di eventi. | Event | |
![]() |
Impedisce l'elaborazione di tutti i listener di eventi nei nodi del flusso di eventi successivi a quello corrente. | Event | |
![]() |
Restituisce la rappresentazione in formato stringa di questo oggetto, formattato in base alle convenzioni specifiche per le versioni localizzate. | Object | |
![]() |
Restituisce una stringa che contiene tutte le proprietà dell'oggetto Event. | Event | |
![]() |
Restituisce il valore di base dell'oggetto specificato. | Object | |
| Costante | Definito da | ||
|---|---|---|---|
| CHANGE : String = "change" [statico]
The SliderEvent.CHANGE constant defines the value of the
type property of the event object for a change event. | SliderEvent | ||
| THUMB_DRAG : String = "thumbDrag" [statico]
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" [statico]
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" [statico]
The SliderEvent.THUMB_RELEASE constant defines the value of the
type property of the event object for a thumbRelease event. | SliderEvent | ||
clickTarget | proprietà |
public var clickTarget:String| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Flex 3 |
| Versioni 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.
Elementi API correlati
keyCode | proprietà |
public var keyCode:int| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Flex 3 |
| Versioni runtime: | Flash Player 9, AIR 1.1 |
If the event was triggered by a key press, the keycode for the key.
thumbIndex | proprietà |
public var thumbIndex:int| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Flex 3 |
| Versioni 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 | proprietà |
public var triggerEvent:Event| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Flex 3 |
| Versioni 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.
Elementi API correlati
value | proprietà |
public var value:Number| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Flex 3 |
| Versioni runtime: | Flash Player 9, AIR 1.1 |
The new value of the slider.
SliderEvent | () | Funzione di costruzione |
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)| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Flex 3 |
| Versioni runtime: | Flash Player 9, AIR 1.1 |
Constructor.
Parametritype: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 | Costante |
public static const CHANGE:String = "change"| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Flex 3 |
| Versioni 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 | Costante |
public static const THUMB_DRAG:String = "thumbDrag"| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Flex 3 |
| Versioni 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 | Costante |
public static const THUMB_PRESS:String = "thumbPress"| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Flex 3 |
| Versioni 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 | Costante |
public static const THUMB_RELEASE:String = "thumbRelease"| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Flex 3 |
| Versioni 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. |
Tue Jun 12 2018, 02:44 PM Z
Nascondi proprietà pubbliche ereditate
Mostra proprietà pubbliche ereditate