Guida di riferimento di ActionScript® 3.0 per la piattaforma Adobe® Flash®
Home  |  Nascondi elenco pacchetti e classi |  Pacchetti  |  Classi  |  Novità  |  Indice  |  Appendici  |  Perché in inglese?
Filtri: Recupero dati dal server...
Recupero dati dal server...
mx.events 

DragEvent  - AS3 Flex

Pacchettomx.events
Classepublic class DragEvent
EreditarietàDragEvent Inheritance MouseEvent Inheritance Event Inheritance Object
Sottoclassi InterDragManagerEvent

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

The DragEvent class represents event objects that are dispatched as part of a drag-and-drop operation.

Elementi API correlati



Proprietà pubbliche
 ProprietàDefinito da
  action : String
The requested action.
DragEvent
 InheritedaltKey : Boolean
Indica se il tasto Alt è attivo (true) o inattivo (false).
MouseEvent
 Inheritedbubbles : Boolean
[sola lettura] Indica se un evento è un evento di bubbling.
Event
 InheritedbuttonDown : Boolean
Indica se il pulsante principale del mouse è premuto (true) o no (false).
MouseEvent
 Inheritedcancelable : Boolean
[sola lettura] Indica se il comportamento associato all'evento può essere impedito.
Event
 InheritedclickCount : int
[sola lettura] Indica se l'evento mouse down fa parte o meno di una sequenza di più clic.
MouseEvent
 InheritedcommandKey : Boolean
Indica se il tasto Comando è attivato (solo Mac). Il valore della proprietà commandKey corrisponde a quello della proprietà ctrlKey in Mac.
MouseEvent
 Inheritedconstructor : Object
Un riferimento all'oggetto classe o alla funzione di costruzione per una determinata istanza di oggetto.
Object
 InheritedcontrolKey : Boolean
Indica se il comando Ctrl è attivato in Mac, Windows e Linux.
MouseEvent
 InheritedctrlKey : Boolean
In Windows o Linux, indica se il tasto Ctrl è attivo (true) o inattivo (false).
MouseEvent
 InheritedcurrentTarget : Object
[sola lettura] L'oggetto che elabora attivamente l'oggetto Event con un listener di eventi.
Event
 Inheriteddelta : int
Indica il numero di righe da scorrere per ogni unità di rotazione della rotella del mouse.
MouseEvent
  draggedItem : Object
If the dragInitiator property contains an IAutomationObject object, this property contains the child IAutomationObject object near the mouse cursor.
DragEvent
  dragInitiator : IUIComponent
The component that initiated the drag.
DragEvent
  dragSource : DragSource
The DragSource object containing the data being dragged.
DragEvent
 InheritedeventPhase : uint
[sola lettura] La fase attuale del flusso di eventi.
Event
 InheritedisRelatedObjectInaccessible : Boolean
Se è true, la proprietà relatedObject viene impostata su null per motivi riconducibili alle sandbox.
MouseEvent
 InheritedlocalX : Number
Quando il blocco del mouse è disattivato, la coordinata orizzontale in corrispondenza della quale l'evento si è verificato in relazione allo sprite contenitore.
MouseEvent
 InheritedlocalY : Number
Quando il blocco del mouse è disattivato, la coordinata verticale in corrispondenza della quale l'evento si è verificato in relazione allo sprite contenitore.
MouseEvent
 InheritedmovementX : Number
Quando il blocco del mouse è attivo, è il cambiamento di posizione del mouse nella direzione X dopo l'ultimo evento del mouse.
MouseEvent
 InheritedmovementY : Number
Quando il blocco del mouse è attivo, è il cambiamento di posizione del mouse nella direzione Y dopo l'ultimo evento del mouse.
MouseEvent
 InheritedrelatedObject : InteractiveObject
Un riferimento a un oggetto dell'elenco di visualizzazione relativo all'evento.
MouseEvent
 InheritedshiftKey : Boolean
Indica se il tasto Maiusc è attivo (true) o inattivo (false).
MouseEvent
 InheritedstageX : Number
[sola lettura] La coordinata orizzontale in cui si è verificato l'evento nelle coordinate globali dello stage.
MouseEvent
 InheritedstageY : Number
[sola lettura] La coordinata verticale in cui si è verificato l'evento nelle coordinate globali dello stage.
MouseEvent
 Inheritedtarget : Object
[sola lettura] Il target dell'evento.
Event
 Inheritedtype : String
[sola lettura] Il tipo di evento.
Event
Metodi pubblici
 MetodoDefinito da
  
DragEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = true, dragInitiator:IUIComponent = null, dragSource:DragSource = null, action:String = null, ctrlKey:Boolean = false, altKey:Boolean = false, shiftKey:Boolean = false)
Constructor.
DragEvent
 Inherited
[override] Crea una copia dell'oggetto MouseEvent e imposta il valore di ogni proprietà in modo che corrisponda a quello dell'originale.
MouseEvent
 Inherited
formatToString(className:String, ... arguments):String
Una funzione dell'utilità per l'implementazione del metodo toString() in classi Event ActionScript 3.0 personalizzate.
Event
 Inherited
Indica se per un oggetto è definita una proprietà specifica.
Object
 Inherited
Verifica se sull'evento è stato chiamato il metodo preventDefault().
Event
 Inherited
Indica se un'istanza della classe Object si trova nella catena di prototipi dell'oggetto specificato come parametro.
Object
 Inherited
Annulla il comportamento predefinito di un evento se tale comportamento può essere annullato.
Event
 Inherited
Indica se la proprietà specificata esiste ed è enumerabile.
Object
 Inherited
Imposta la disponibilità di una proprietà dinamica per le operazioni cicliche.
Object
 Inherited
Impedisce l'elaborazione di tutti i listener di eventi nel nodo corrente e in tutti i nodi successivi del flusso di eventi.
Event
 Inherited
Impedisce l'elaborazione di tutti i listener di eventi nei nodi del flusso di eventi successivi a quello corrente.
Event
 Inherited
Restituisce la rappresentazione in formato stringa di questo oggetto, formattato in base alle convenzioni specifiche per le versioni localizzate.
Object
 Inherited
[override] Restituisce una stringa che contiene tutte le proprietà dell'oggetto MouseEvent.
MouseEvent
 Inherited
Indica a Flash Player o ad Adobe AIR di eseguire il rendering al termine dell'elaborazione dell'evento se l'elenco di visualizzazione è stato modificato.
MouseEvent
 Inherited
Restituisce il valore di base dell'oggetto specificato.
Object
Costanti pubbliche
 CostanteDefinito da
  DRAG_COMPLETE : String = "dragComplete"
[statico] The DragEvent.DRAG_COMPLETE constant defines the value of the type property of the event object for a dragComplete event.
DragEvent
  DRAG_DROP : String = "dragDrop"
[statico] The DragEvent.DRAG_DROP constant defines the value of the type property of the event object for a dragDrop event.
DragEvent
  DRAG_ENTER : String = "dragEnter"
[statico] The DragEvent.DRAG_ENTER constant defines the value of the type property of the event object for a dragEnter event.
DragEvent
  DRAG_EXIT : String = "dragExit"
[statico] The DragEvent.DRAG_EXIT constant defines the value of the type property of the event object for a dragExit event.
DragEvent
  DRAG_OVER : String = "dragOver"
[statico] The DragEvent.DRAG_OVER constant defines the value of the type property of the event object for a dragOver event.
DragEvent
  DRAG_START : String = "dragStart"
[statico] The DragEvent.DRAG_START constant defines the value of the type property of the event object for a dragStart event.
DragEvent
Descrizione delle proprietà

action

proprietà
public var action:String

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

The requested action. One of DragManager.COPY, DragManager.LINK, DragManager.MOVE, or DragManager.NONE.

draggedItem

proprietà 
public var draggedItem:Object

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

If the dragInitiator property contains an IAutomationObject object, this property contains the child IAutomationObject object near the mouse cursor. If the dragInitiator property does not contain an IAutomationObject object, this proprty is null.

dragInitiator

proprietà 
public var dragInitiator:IUIComponent

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

The component that initiated the drag.

dragSource

proprietà 
public var dragSource:DragSource

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

The DragSource object containing the data being dragged.

Descrizione della funzione di costruzione

DragEvent

()Funzione di costruzione
public function DragEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = true, dragInitiator:IUIComponent = null, dragSource:DragSource = null, action:String = null, ctrlKey:Boolean = false, altKey:Boolean = false, shiftKey:Boolean = false)

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

Constructor. Normally called by the Flex control and not used in application code.

Parametri
type: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 = true) — Specifies whether the behavior associated with the event can be prevented.
 
dragInitiator:IUIComponent (default = null) — IUIComponent that specifies the component initiating the drag.
 
dragSource:DragSource (default = null) — A DragSource object containing the data being dragged.
 
action:String (default = null) — The specified drop action, such as DragManager.MOVE.
 
ctrlKey:Boolean (default = false) — Indicates whether the Ctrl key was pressed.
 
altKey:Boolean (default = false) — Indicates whether the Alt key was pressed.
 
shiftKey:Boolean (default = false) — Indicates whether the Shift key was pressed.
Descrizione delle costanti

DRAG_COMPLETE

Costante
public static const DRAG_COMPLETE:String = "dragComplete"

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

The DragEvent.DRAG_COMPLETE constant defines the value of the type property of the event object for a dragComplete event.

The properties of the event object have the following values:

PropertyValue
actionThe action that caused the event: DragManager.COPY, DragManager.LINK, DragManager.MOVE, or DragManager.NONE.
bubblesfalse
cancelablefalse
currentTargetThe 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.
dragInitiatorThe component that initiated the drag.
dragSourceThe DragSource object containing the data being dragged.
targetThe 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.

DRAG_DROP

Costante 
public static const DRAG_DROP:String = "dragDrop"

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

The DragEvent.DRAG_DROP constant defines the value of the type property of the event object for a dragDrop event.

The properties of the event object have the following values:

PropertyValue
actionThe action that caused the event: DragManager.COPY, DragManager.LINK, DragManager.MOVE, or DragManager.NONE.
bubblesfalse
cancelablefalse
currentTargetThe 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.
dragInitiatorThe component that initiated the drag.
dragSourceThe DragSource object containing the data being dragged.
targetThe 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.

DRAG_ENTER

Costante 
public static const DRAG_ENTER:String = "dragEnter"

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

The DragEvent.DRAG_ENTER constant defines the value of the type property of the event object for a dragEnter event.

The properties of the event object have the following values:

PropertyValue
actionThe action that caused the event, which is always DragManager.MOVE.
bubblesfalse
cancelablefalse
currentTargetThe 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.
dragInitiatorThe component that initiated the drag.
dragSourceThe DragSource object containing the data being dragged.
targetThe 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.

DRAG_EXIT

Costante 
public static const DRAG_EXIT:String = "dragExit"

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

The DragEvent.DRAG_EXIT constant defines the value of the type property of the event object for a dragExit event.

The properties of the event object have the following values:

PropertyValue
actionThe action that caused the event: DragManager.COPY, DragManager.LINK, DragManager.MOVE, or DragManager.NONE.
bubblesfalse
cancelablefalse
currentTargetThe 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.
dragInitiatorThe component that initiated the drag.
dragSourceThe DragSource object containing the data being dragged.
targetThe 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.

DRAG_OVER

Costante 
public static const DRAG_OVER:String = "dragOver"

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

The DragEvent.DRAG_OVER constant defines the value of the type property of the event object for a dragOver event.

The properties of the event object have the following values:

PropertyValue
actionThe action that caused the event: DragManager.COPY, DragManager.LINK, DragManager.MOVE, or DragManager.NONE.
bubblesfalse
cancelablefalse
currentTargetThe 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.
dragInitiatorThe component that initiated the drag.
dragSourceThe DragSource object containing the data being dragged.
targetThe 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.

DRAG_START

Costante 
public static const DRAG_START:String = "dragStart"

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

The DragEvent.DRAG_START constant defines the value of the type property of the event object for a dragStart event.

The properties of the event object have the following values:

PropertyValue
actionThe action that caused the event: DragManager.COPY, DragManager.LINK, DragManager.MOVE, or DragManager.NONE.
bubblesfalse
cancelablefalse
currentTargetThe 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.
dragInitiatorThe component that initiated the drag.
dragSourceThe DragSource object containing the data being dragged.
targetThe 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.





[ X ]Perché in inglese?
Il contenuto della Guida di riferimento di ActionScript 3.0 appare in inglese

Non tutte le parti della Guida di riferimento di ActionScript 3.0 sono tradotte in tutte le lingue. Quando un elemento del linguaggio non è tradotto, viene riportato in inglese. Ad esempio, la classe ga.controls.HelpBox non è tradotta in nessuna lingua. Pertanto, nella versione italiana della guida di riferimento, la descrizione della classe ga.controls.HelpBox è riportata in inglese.