Referenshandbok för ActionScript® 3.0 i Adobe® Flash®-plattformen
Hem  |  Dölj paket och klasslista |  Paket  |  Klasser  |  Nyheter  |  Index  |  Bilagor  |  Varför på engelska?
Filter: Hämtar data från servern ...
Hämtar data från servern ...
mx.events 

DragEvent  - AS3 Flex

Paketmx.events
Klasspublic class DragEvent
ArvDragEvent Inheritance MouseEvent Inheritance Event Inheritance Object
Underklasser InterDragManagerEvent

Språkversion: ActionScript 3.0
Produktversion: Flex 3
Körningsmiljöversioner: Flash Player 9, AIR 1.1

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

Relaterade API-element



Publika egenskaper
 EgenskapDefinieras med
  action : String
The requested action.
DragEvent
 InheritedaltKey : Boolean
Anger om Alt-tangenten är aktiv (true) eller inaktiv (false).
MouseEvent
 Inheritedbubbles : Boolean
[skrivskyddad] indikerar om händelsen är en bubblande händelse.
Event
 InheritedbuttonDown : Boolean
Anger om den primära musknappen är nedtryckt (true) eller inte (false).
MouseEvent
 Inheritedcancelable : Boolean
[skrivskyddad] Indikerar om beteendet som är kopplat till händelsen kan förhindras.
Event
 InheritedclickCount : int
[skrivskyddad] Anger om mus ned-händelsen är en del i sekvensen med flera klick.
MouseEvent
 InheritedcommandKey : Boolean
Anger om kommandotangenten är aktiverad (endast Macintosh.) Värdet på egenskapen commandKey kommer att ha samma värde som egenskapen ctrlKey i Macintosh.
MouseEvent
 Inheritedconstructor : Object
En referens till klassobjektet eller konstruktorfunktionen för en given objektinstans.
Object
 InheritedcontrolKey : Boolean
Anger om Ctrl-tangenten är aktiv i Macintosh, Windows eller Linux.
MouseEvent
 InheritedctrlKey : Boolean
Anger om Ctrl-tangenten är aktiv (true) eller inaktiv (false) i Windows eller Linux.
MouseEvent
 InheritedcurrentTarget : Object
[skrivskyddad] Det objekt som aktivt behandlar Event-objektet med en händelseavlyssnare.
Event
 Inheriteddelta : int
Anger hur många rader fönstret ska rullas för varje enhet användaren vrider mushjulet.
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
[skrivskyddad] Den nuvarande fasen i händelseflödet.
Event
 InheritedisRelatedObjectInaccessible : Boolean
Om true, är egenskapen relatedObject satt till null av orsaker som är relaterade till säkerhetssandlådor.
MouseEvent
 InheritedlocalX : Number
Den vågräta koordinat som händelsen inträffade vid i förhållande till behållar-spriten, om låsning av musen är inaktiverat.
MouseEvent
 InheritedlocalY : Number
Den lodräta koordinat som händelsen inträffade vid i förhållande till behållar-spriten, om låsning av musen är inaktiverat.
MouseEvent
 InheritedmovementX : Number
Förändringen av musens position i X-riktning sedan den senaste mushändelsen, om låsning av musen är aktiverat.
MouseEvent
 InheritedmovementY : Number
Förändringen av musens position i Y-riktning sedan den senaste mushändelsen, om låsning av musen är aktiverat.
MouseEvent
 InheritedrelatedObject : InteractiveObject
En referens till ett visningslisteobjekt som är relaterat till händelsen.
MouseEvent
 InheritedshiftKey : Boolean
Anger om skifttangenten är aktiv (true) eller inaktiv (false).
MouseEvent
 InheritedstageX : Number
[skrivskyddad] Den vågräta koordinat som händelsen inträffade vid i globala scenkoordinater.
MouseEvent
 InheritedstageY : Number
[skrivskyddad] Den lodräta koordinat som händelsen inträffade vid i globala scenkoordinater.
MouseEvent
 Inheritedtarget : Object
[skrivskyddad] Händelsens mål.
Event
 Inheritedtype : String
[skrivskyddad] Händelsens typ.
Event
Publika metoder
 MetodDefinieras med
  
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
[åsidosätt] Skapar en kopia av MouseEvent-objektet och ställer in värdet för alla egenskaper så att de matchar originalets egenskaper.
MouseEvent
 Inherited
formatToString(className:String, ... arguments):String
Ett verktyg som används för att implementera metoden toString() i de anpassade klasserna ActionScript 3.0.
Event
 Inherited
Anger om det finns en egenskap angiven för ett objekt.
Object
 Inherited
Kontrollerar om preventDefault()-metoden har anropats för händelsen.
Event
 Inherited
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter.
Object
 Inherited
Avbryter en händelses standardbeteende om det beteendet kan avbrytas.
Event
 Inherited
Anger om den angivna egenskapen finns och är uppräkningsbar.
Object
 Inherited
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder.
Object
 Inherited
Förhindrar behandling av händelsehanterare i den aktuella noden och alla noder som följer den aktuella noden i händelseflödet.
Event
 Inherited
Förhindrar behandling av händelsehanterare i noder som följer den aktuella noden i händelseflödet.
Event
 Inherited
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner.
Object
 Inherited
[åsidosätt] Returnerar en sträng som innehåller alla egenskaper i MouseEvent-objektet.
MouseEvent
 Inherited
Instruerar Flash Player eller Adobe AIR att göra en rendering när den här händelsen har behandlats, om visningslistan har ändrats.
MouseEvent
 Inherited
Returnerar det angivna objektets primitiva värde.
Object
Publika konstanter
 KonstantDefinieras med
  DRAG_COMPLETE : String = "dragComplete"
[statisk] 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"
[statisk] 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"
[statisk] 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"
[statisk] 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"
[statisk] 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"
[statisk] The DragEvent.DRAG_START constant defines the value of the type property of the event object for a dragStart event.
DragEvent
Egenskapsdetaljer

action

egenskap
public var action:String

Språkversion: ActionScript 3.0
Produktversion: Flex 3
Körningsmiljöversioner: Flash Player 9, AIR 1.1

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

draggedItem

egenskap 
public var draggedItem:Object

Språkversion: ActionScript 3.0
Produktversion: Flex 3
Körningsmiljöversioner: 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

egenskap 
public var dragInitiator:IUIComponent

Språkversion: ActionScript 3.0
Produktversion: Flex 3
Körningsmiljöversioner: Flash Player 9, AIR 1.1

The component that initiated the drag.

dragSource

egenskap 
public var dragSource:DragSource

Språkversion: ActionScript 3.0
Produktversion: Flex 3
Körningsmiljöversioner: Flash Player 9, AIR 1.1

The DragSource object containing the data being dragged.

Konstruktordetaljer

DragEvent

()Konstruktor
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)

Språkversion: ActionScript 3.0
Produktversion: Flex 3
Körningsmiljöversioner: Flash Player 9, AIR 1.1

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

Parametrar
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.
Konstantdetaljer

DRAG_COMPLETE

Konstant
public static const DRAG_COMPLETE:String = "dragComplete"

Språkversion: ActionScript 3.0
Produktversion: Flex 3
Körningsmiljöversioner: 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

Konstant 
public static const DRAG_DROP:String = "dragDrop"

Språkversion: ActionScript 3.0
Produktversion: Flex 3
Körningsmiljöversioner: 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

Konstant 
public static const DRAG_ENTER:String = "dragEnter"

Språkversion: ActionScript 3.0
Produktversion: Flex 3
Körningsmiljöversioner: 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

Konstant 
public static const DRAG_EXIT:String = "dragExit"

Språkversion: ActionScript 3.0
Produktversion: Flex 3
Körningsmiljöversioner: 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

Konstant 
public static const DRAG_OVER:String = "dragOver"

Språkversion: ActionScript 3.0
Produktversion: Flex 3
Körningsmiljöversioner: 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

Konstant 
public static const DRAG_START:String = "dragStart"

Språkversion: ActionScript 3.0
Produktversion: Flex 3
Körningsmiljöversioner: 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 ]Varför på engelska?
Innehåll i Referenshandbok för ActionScript 3.0 i Adobe Flash-plattformen är på engelska

Det är inte alla delar av Referenshandbok för ActionScript 3.0 i Adobe Flash-plattformen som översätts till alla språk. Om ett språkelement inte översätts visas det på engelska. Klassen ga.controls.HelpBox översätts till exempel inte till något språk. I den svenska versionen av referenshandboken visas därför klassen ga.controls.HelpBox på engelska.