Pakket | mx.events |
Klasse | public class ColorPickerEvent |
Overerving | ColorPickerEvent Event Object |
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Meer voorbeelden
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 | ||
color : uint
The RGB color that was rolled over, rolled out of, selected, or
entered. | ColorPickerEvent | ||
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 | ||
index : int
The zero-based index in the Color's data provider that corresponds
to the color that was rolled over, rolled out of, or selected. | ColorPickerEvent | ||
target : Object [alleen-lezen]
Doel van gebeurtenis. | Event | ||
type : String [alleen-lezen]
Het type gebeurtenis. | Event |
Methode | Gedefinieerd door | ||
---|---|---|---|
ColorPickerEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, index:int = -1, color:uint = 0xFFFFFFFF)
Constructor. | ColorPickerEvent | ||
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 ColorPickerEvent.CHANGE constant defines the value of the
type property of the event that is dispatched when the user
selects a color from the ColorPicker control. | ColorPickerEvent | ||
ENTER : String = "enter" [statisch]
The ColorPickerEvent.ENTER constant defines the value of the
type property of the event that is dispatched when the user
presses the Enter key after typing in the color selector box. | ColorPickerEvent | ||
ITEM_ROLL_OUT : String = "itemRollOut" [statisch]
The ColorPickerEvent.ITEM_ROLL_OUT constant defines the value of the
type property of the event that is dispatched when the user
rolls the mouse out of a swatch in the swatch panel. | ColorPickerEvent | ||
ITEM_ROLL_OVER : String = "itemRollOver" [statisch]
The ColorPickerEvent.ITEM_ROLL_OVER constant defines the value of the
type property of the event that is dispatched when the user
rolls the mouse over of a swatch in the swatch panel. | ColorPickerEvent |
color | eigenschap |
public var color:uint
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
The RGB color that was rolled over, rolled out of, selected, or entered.
index | eigenschap |
public var index:int
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
The zero-based index in the Color's data provider that corresponds
to the color that was rolled over, rolled out of, or selected.
If the event type is ColorPickerEvent.ENTER
,
will have default value -1; it is not set in this case because
the user can enter an RGB string that doesn't match any color
in the data provider.
ColorPickerEvent | () | Constructor |
public function ColorPickerEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, index:int = -1, color:uint = 0xFFFFFFFF)
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.
| |
index:int (default = -1 ) — The zero-based index in the Color's data provider
that corresponds to the color that was rolled over, rolled out of,
or selected.
| |
color:uint (default = 0xFFFFFFFF ) — The RGB color that was rolled over, rolled out of,
selected, or entered.
|
CHANGE | Constante |
public static const CHANGE:String = "change"
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
The ColorPickerEvent.CHANGE
constant defines the value of the
type
property of the event that is dispatched when the user
selects a color from the ColorPicker control.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
color | The RGB color that was selected. |
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 . |
index | The zero-based index in the Color's data provider that corresponds to the color that was selected. |
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. |
ENTER | Constante |
public static const ENTER:String = "enter"
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
The ColorPickerEvent.ENTER
constant defines the value of the
type
property of the event that is dispatched when the user
presses the Enter key after typing in the color selector box.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
color | The RGB color that was entered. |
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 . |
index | Always -1. |
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. |
ITEM_ROLL_OUT | Constante |
public static const ITEM_ROLL_OUT:String = "itemRollOut"
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
The ColorPickerEvent.ITEM_ROLL_OUT
constant defines the value of the
type
property of the event that is dispatched when the user
rolls the mouse out of a swatch in the swatch panel.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
color | The RGB color of the color that was rolled over. |
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 . |
index | The zero-based index in the Color's data provider that corresponds to the color that was rolled over. |
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. |
ITEM_ROLL_OVER | Constante |
public static const ITEM_ROLL_OVER:String = "itemRollOver"
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
The ColorPickerEvent.ITEM_ROLL_OVER
constant defines the value of the
type
property of the event that is dispatched when the user
rolls the mouse over of a swatch in the swatch panel.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
color | The RGB color of the color that the user rolled out of. |
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 . |
index | The zero-based index in the Color's data provider that corresponds to the color that the user rolled out of. |
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. |
Wed Jun 13 2018, 11:42 AM Z