Pakket | mx.events |
Klasse | public class SliderEvent |
Overerving | SliderEvent Event Object |
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
change
, thumbDrag
,
thumbPress
, and thumbRelease
events
of the HSlider and VSlider classes.
Meer voorbeelden
Verwante API-elementen
mx.controls.VSlider
mx.controls.sliderClasses.Slider
mx.events.SliderEventClickTarget
Eigenschap | Gedefinieerd door | ||
---|---|---|---|
bubbles : Boolean [alleen-lezen]
Geeft aan of een gebeurtenis een terugkoppelgebeurtenis is. | Event | ||
cancelable : Boolean [alleen-lezen]
Geeft aan of het gedrag dat aan deze gebeurtenis is gekoppeld, kan worden voorkomen. | Event | ||
clickTarget : String
Specifies whether the slider track or a slider thumb was pressed. | SliderEvent | ||
constructor : Object
Verwijzing naar het klasseobject of de constructorfunctie van een bepaalde objectinstantie. | Object | ||
currentTarget : Object [alleen-lezen]
Het object dat het gebeurtenisobject actief verwerkt met een gebeurtenislistener. | Event | ||
eventPhase : uint [alleen-lezen]
De huidige fase in de gebeurtenisstroom. | Event | ||
keyCode : int
If the event was triggered by a key press, the keycode for the key. | SliderEvent | ||
target : Object [alleen-lezen]
Doel van gebeurtenis. | 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 [alleen-lezen]
Het type gebeurtenis. | Event | ||
value : Number
The new value of the slider. | SliderEvent |
Methode | Gedefinieerd door | ||
---|---|---|---|
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 | ||
Dupliceert een instantie van een subklasse Event. | Event | ||
Een hulpprogrammafunctie voor de implementatie van de methode toString() in aangepaste ActionScript 3.0-Event-klassen. | Event | ||
Geeft aan of voor een object een opgegeven eigenschap is gedefinieerd. | Object | ||
Controleert of de methode preventDefault() is aangeroepen voor de gebeurtenis. | Event | ||
Geeft aan of een instantie van de klasse Object zich in de prototypeketen van het object bevindt dat als parameter is opgegeven. | Object | ||
Annuleert het standaardgedrag van een gebeurtenis wanneer dat gedrag kan worden geannuleerd. | Event | ||
Geeft aan of de opgegeven eigenschap bestaat en kan worden opgesomd. | Object | ||
Stelt de beschikbaarheid van een dynamische eigenschap voor lusbewerkingen in. | Object | ||
Voorkomt het verwerken van gebeurtenislisteners in het huidige knooppunt en volgende knooppunten in de gebeurtenisstroom. | Event | ||
Voorkomt het verwerken van gebeurtenislisteners in knooppunten die volgen op het huidige knooppunt in de gebeurtenisstroom. | Event | ||
Geeft de tekenreeksweergave van dit object weer, geformatteerd volgens de locatiespecifieke conventies. | Object | ||
Retourneert een tekenreeks die alle eigenschappen van het Event-object bevat. | Event | ||
Retourneert de primitieve waarde van het opgegeven object. | Object |
Constante | Gedefinieerd door | ||
---|---|---|---|
CHANGE : String = "change" [statisch]
The SliderEvent.CHANGE constant defines the value of the
type property of the event object for a change event. | SliderEvent | ||
THUMB_DRAG : String = "thumbDrag" [statisch]
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" [statisch]
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" [statisch]
The SliderEvent.THUMB_RELEASE constant defines the value of the
type property of the event object for a thumbRelease event. | SliderEvent |
clickTarget | eigenschap |
public var clickTarget:String
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 3 |
Runtimeversies: | 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
.
Verwante API-elementen
keyCode | eigenschap |
public var keyCode:int
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
If the event was triggered by a key press, the keycode for the key.
thumbIndex | eigenschap |
public var thumbIndex:int
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 3 |
Runtimeversies: | 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 | eigenschap |
public var triggerEvent:Event
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 3 |
Runtimeversies: | 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.
Verwante API-elementen
value | eigenschap |
public var value:Number
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
The new value of the slider.
SliderEvent | () | Constructor |
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)
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Constructor.
Parameterstype: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"
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 3 |
Runtimeversies: | 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"
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 3 |
Runtimeversies: | 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"
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 3 |
Runtimeversies: | 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"
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 3 |
Runtimeversies: | 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:42 AM Z