Pacote | mx.events |
Classe | public class ColorPickerEvent |
Herança | ColorPickerEvent 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 |
Mais exemplos
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 | ||
color : uint
The RGB color that was rolled over, rolled out of, selected, or
entered. | ColorPickerEvent | ||
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 | ||
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 [somente leitura]
O destino de evento. | Event | ||
type : String [somente leitura]
O tipo de evento. | Event |
Método | Definido por | ||
---|---|---|---|
ColorPickerEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, index:int = -1, color:uint = 0xFFFFFFFF)
Constructor. | ColorPickerEvent | ||
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 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" [estático]
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" [estático]
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" [estático]
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 | propriedade |
public var color:uint
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 3 |
Versões de runtime: | Flash Player 9, AIR 1.1 |
The RGB color that was rolled over, rolled out of, selected, or entered.
index | propriedade |
public var index: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 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 | () | Construtor |
public function ColorPickerEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, index:int = -1, color:uint = 0xFFFFFFFF)
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.
| |
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"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 3 |
Versões de runtime: | 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"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 3 |
Versões de runtime: | 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"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 3 |
Versões de runtime: | 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"
Versão da linguagem: | ActionScript 3.0 |
Versão de produto: | Flex 3 |
Versões de runtime: | 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:10 AM Z