Paquete | spark.events |
Clase | public class ListEvent |
Herencia | ListEvent MouseEvent Event Object |
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 4.5 |
Versiones de motor de ejecución: | Flash Player 10.2, AIR 2.5 |
Propiedad | Definido por | ||
---|---|---|---|
altKey : Boolean
Indica si la tecla Alt está activa (true) o inactiva (false). | MouseEvent | ||
bubbles : Boolean [solo lectura]
Indica si un evento es un evento de propagación. | Event | ||
buttonDown : Boolean
Indica si se pulsa el botón principal del ratón (true) o no (false). | MouseEvent | ||
cancelable : Boolean [solo lectura]
Indica si se puede evitar el comportamiento asociado al evento. | Event | ||
clickCount : int [solo lectura]
Indica si el evento MouseDown forma parte o no de una secuencia de varios clics. | MouseEvent | ||
commandKey : Boolean
Indica si la tecla Comando está activada (sólo en Mac). El valor de la propiedad commandKey tiene el mismo valor que la propiedad ctrlKey en Mac. | MouseEvent | ||
constructor : Object
Una referencia a la clase de objeto o función constructora para una instancia de objeto determinada. | Object | ||
controlKey : Boolean
Indica si la tecla Control está activada en Mac y si la tecla Ctrl está activada en Windows o Linux. | MouseEvent | ||
ctrlKey : Boolean
En Windows o Linux, indica si la tecla Ctrl está activa (true) o inactiva (false). | MouseEvent | ||
currentTarget : Object [solo lectura]
Objeto que procesa de forma activa el objeto de evento con un detector de eventos. | Event | ||
delta : int
Indica el número de líneas que debe desplazarse la visualización por cada vuelta de la rueda del ratón. | MouseEvent | ||
eventPhase : uint [solo lectura]
La fase actual en el flujo del evento. | Event | ||
isRelatedObjectInaccessible : Boolean
Si es true, la propiedad relatedObject se establece como null por motivos relacionados con entornos limitados de seguridad. | MouseEvent | ||
item : Object
The data provider item the item renderer is displaying. | ListEvent | ||
itemIndex : int
The index of the data item the item renderer is displaying. | ListEvent | ||
itemRenderer : IItemRenderer
The item renderer that is displaying the item. | ListEvent | ||
localX : Number
Cuando el bloqueo del ratón está desactivado, la coordenada horizontal en la que se produce el evento relativo a la clase Sprite contenida. | MouseEvent | ||
localY : Number
Cuando el bloqueo del ratón está desactivado, la coordenada vertical en la que se produce el evento relativo a la clase Sprite contenida. | MouseEvent | ||
movementX : Number
Cuando el bloqueo del ratón está activado, el cambio en la posición del ratón en la dirección X desde el último evento de ratón. | MouseEvent | ||
movementY : Number
Cuando el bloqueo del ratón está activado, el cambio en la posición del ratón en la dirección Y desde el último evento de ratón. | MouseEvent | ||
relatedObject : InteractiveObject
Referencia a un objeto de la lista de visualización relacionado con el evento. | MouseEvent | ||
shiftKey : Boolean
Indica si la tecla Mayús está activa (true) o inactiva (false). | MouseEvent | ||
stageX : Number [solo lectura]
La coordenada horizontal en la que se produce el evento en las coordenadas globales del escenario. | MouseEvent | ||
stageY : Number [solo lectura]
La coordenada vertical en la que se produce el evento en las coordenadas globales del escenario. | MouseEvent | ||
target : Object [solo lectura]
El destino del evento. | Event | ||
type : String [solo lectura]
El tipo de evento. | Event |
Método | Definido por | ||
---|---|---|---|
ListEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, localX:Number = NaN, localY:Number = NaN, relatedObject:InteractiveObject = null, ctrlKey:Boolean = false, altKey:Boolean = false, shiftKey:Boolean = false, buttonDown:Boolean = false, delta:int = 0, itemIndex:int = -1, item:Object = null, itemRenderer:IItemRenderer = null)
Constructor. | ListEvent | ||
[override]
Crea una copia del objeto MouseEvent y define el valor de cada propiedad para que coincida con el del objeto original. | MouseEvent | ||
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 | ||
[override]
Devuelve una cadena con todas las propiedades del objeto MouseEvent. | MouseEvent | ||
Si se ha modificado la lista de visualización, da instrucciones a Flash Player o a Adobe AIR para que muestre la representación tras finalizar el procesamiento del evento. | MouseEvent | ||
Devuelve el valor simple del objeto especificado. | Object |
Constante | Definido por | ||
---|---|---|---|
ITEM_ROLL_OUT : String = "itemRollOut" [estática]
The ListEvent.ITEM_ROLL_OUT constant defines the value of the
type property of the ListEvent object for an
itemRollOut event, which indicates that the user rolled
the mouse pointer out of a visual item in the control. | ListEvent | ||
ITEM_ROLL_OVER : String = "itemRollOver" [estática]
The ListEvent.ITEM_ROLL_OVER constant defines the value of the
type property of the ListEvent object for an
itemRollOver event, which indicates that the user rolled
the mouse pointer over a visual item in the control. | ListEvent |
item | propiedad |
public var item:Object
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 4.5 |
Versiones de motor de ejecución: | Flash Player 10.2, AIR 2.5 |
The data provider item the item renderer is displaying.
itemIndex | propiedad |
public var itemIndex:int
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 4.5 |
Versiones de motor de ejecución: | Flash Player 10.2, AIR 2.5 |
The index of the data item the item renderer is displaying. You can access the data provider item using this property.
itemRenderer | propiedad |
public var itemRenderer:IItemRenderer
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 4.5 |
Versiones de motor de ejecución: | Flash Player 10.2, AIR 2.5 |
The item renderer that is displaying the item.
ListEvent | () | Información sobre |
public function ListEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, localX:Number = NaN, localY:Number = NaN, relatedObject:InteractiveObject = null, ctrlKey:Boolean = false, altKey:Boolean = false, shiftKey:Boolean = false, buttonDown:Boolean = false, delta:int = 0, itemIndex:int = -1, item:Object = null, itemRenderer:IItemRenderer = null)
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 4.5 |
Versiones de motor de ejecución: | Flash Player 10.2, AIR 2.5 |
Constructor. Normally called by the Flex control and not used in application code.
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.
| |
localX:Number (default = NaN ) — Distinguishes the mouse gesture that caused this event to be dispatched.
| |
localY:Number (default = NaN ) — Specifies whether the event can bubble up the display list hierarchy.
| |
relatedObject:InteractiveObject (default = null ) — Specifies whether the behavior associated with the event can be prevented.
| |
ctrlKey:Boolean (default = false ) — The event's x coordinate relative to the List.
| |
altKey:Boolean (default = false ) — The event's y coordinate relative to the List.
| |
shiftKey:Boolean (default = false ) — The relatedObject property of the
MouseEvent that triggered this ListEvent.
| |
buttonDown:Boolean (default = false ) — Whether the Control key is down.
| |
delta:int (default = 0 ) — Whether the Alt key is down.
| |
itemIndex:int (default = -1 ) — Whether the Shift key is down.
| |
item:Object (default = null ) — Whether the Control key is down.
| |
itemRenderer:IItemRenderer (default = null ) — Not used.
|
ITEM_ROLL_OUT | Constante |
public static const ITEM_ROLL_OUT:String = "itemRollOut"
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 4.5 |
Versiones de motor de ejecución: | Flash Player 10.2, AIR 2.5 |
The ListEvent.ITEM_ROLL_OUT constant defines the value of the
type
property of the ListEvent object for an
itemRollOut
event, which indicates that the user rolled
the mouse pointer out of a visual item in the control.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
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 . |
itemIndex | The data provider index of the item displayed by the item renderer where the event occurred. |
item | The data provider item for the item renderer. |
itemRenderer | The The item renderer that displayed this item. |
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. |
Type | ListEvent.ITEM_ROLL_OUT |
ITEM_ROLL_OVER | Constante |
public static const ITEM_ROLL_OVER:String = "itemRollOver"
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 4.5 |
Versiones de motor de ejecución: | Flash Player 10.2, AIR 2.5 |
The ListEvent.ITEM_ROLL_OVER constant defines the value of the
type
property of the ListEvent object for an
itemRollOver
event, which indicates that the user rolled
the mouse pointer over a visual item in the control.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
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 . |
itemIndex | The data provider index of the item displayed by the item renderer where the event occurred. |
item | The data provider item for the item renderer. |
itemRenderer | The The item renderer that displayed this item. |
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. |
Type | ListEvent.ITEM_ROLL_OVER |
Tue Jun 12 2018, 02:12 PM Z