Paket | mx.events |
Klass | public class DragEvent |
Arv | DragEvent MouseEvent Event Object |
Underklasser | InterDragManagerEvent |
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Relaterade API-element
Egenskap | Definieras med | ||
---|---|---|---|
action : String
The requested action. | DragEvent | ||
altKey : Boolean
Anger om Alt-tangenten är aktiv (true) eller inaktiv (false). | MouseEvent | ||
bubbles : Boolean [skrivskyddad]
indikerar om händelsen är en bubblande händelse. | Event | ||
buttonDown : Boolean
Anger om den primära musknappen är nedtryckt (true) eller inte (false). | MouseEvent | ||
cancelable : Boolean [skrivskyddad]
Indikerar om beteendet som är kopplat till händelsen kan förhindras. | Event | ||
clickCount : int [skrivskyddad]
Anger om mus ned-händelsen är en del i sekvensen med flera klick. | MouseEvent | ||
commandKey : 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 | ||
constructor : Object
En referens till klassobjektet eller konstruktorfunktionen för en given objektinstans. | Object | ||
controlKey : Boolean
Anger om Ctrl-tangenten är aktiv i Macintosh, Windows eller Linux. | MouseEvent | ||
ctrlKey : Boolean
Anger om Ctrl-tangenten är aktiv (true) eller inaktiv (false) i Windows eller Linux. | MouseEvent | ||
currentTarget : Object [skrivskyddad]
Det objekt som aktivt behandlar Event-objektet med en händelseavlyssnare. | Event | ||
delta : 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 | ||
eventPhase : uint [skrivskyddad]
Den nuvarande fasen i händelseflödet. | Event | ||
isRelatedObjectInaccessible : Boolean
Om true, är egenskapen relatedObject satt till null av orsaker som är relaterade till säkerhetssandlådor. | MouseEvent | ||
localX : 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 | ||
localY : 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 | ||
movementX : Number
Förändringen av musens position i X-riktning sedan den senaste mushändelsen, om låsning av musen är aktiverat. | MouseEvent | ||
movementY : Number
Förändringen av musens position i Y-riktning sedan den senaste mushändelsen, om låsning av musen är aktiverat. | MouseEvent | ||
relatedObject : InteractiveObject
En referens till ett visningslisteobjekt som är relaterat till händelsen. | MouseEvent | ||
shiftKey : Boolean
Anger om skifttangenten är aktiv (true) eller inaktiv (false). | MouseEvent | ||
stageX : Number [skrivskyddad]
Den vågräta koordinat som händelsen inträffade vid i globala scenkoordinater. | MouseEvent | ||
stageY : Number [skrivskyddad]
Den lodräta koordinat som händelsen inträffade vid i globala scenkoordinater. | MouseEvent | ||
target : Object [skrivskyddad]
Händelsens mål. | Event | ||
type : String [skrivskyddad]
Händelsens typ. | Event |
Metod | Definieras 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 | ||
[å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 | ||
Ett verktyg som används för att implementera metoden toString() i de anpassade klasserna ActionScript 3.0. | Event | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Kontrollerar om preventDefault()-metoden har anropats för händelsen. | Event | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Avbryter en händelses standardbeteende om det beteendet kan avbrytas. | Event | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Förhindrar behandling av händelsehanterare i den aktuella noden och alla noder som följer den aktuella noden i händelseflödet. | Event | ||
Förhindrar behandling av händelsehanterare i noder som följer den aktuella noden i händelseflödet. | Event | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
[åsidosätt]
Returnerar en sträng som innehåller alla egenskaper i MouseEvent-objektet. | MouseEvent | ||
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 | ||
Returnerar det angivna objektets primitiva värde. | Object |
Konstant | Definieras 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 |
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.
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.
Parametrartype: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.
|
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:
Property | Value |
---|---|
action | The action that caused the event:
DragManager.COPY , DragManager.LINK ,
DragManager.MOVE , or DragManager.NONE . |
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 . |
dragInitiator | The component that initiated the drag. |
dragSource | The DragSource object containing the data being dragged. |
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. |
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:
Property | Value |
---|---|
action | The action that caused the event:
DragManager.COPY , DragManager.LINK ,
DragManager.MOVE , or DragManager.NONE . |
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 . |
dragInitiator | The component that initiated the drag. |
dragSource | The DragSource object containing the data being dragged. |
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. |
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:
Property | Value |
---|---|
action | The action that caused the event, which is always
DragManager.MOVE . |
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 . |
dragInitiator | The component that initiated the drag. |
dragSource | The DragSource object containing the data being dragged. |
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. |
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:
Property | Value |
---|---|
action | The action that caused the event:
DragManager.COPY , DragManager.LINK ,
DragManager.MOVE , or DragManager.NONE . |
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 . |
dragInitiator | The component that initiated the drag. |
dragSource | The DragSource object containing the data being dragged. |
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. |
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:
Property | Value |
---|---|
action | The action that caused the event:
DragManager.COPY , DragManager.LINK ,
DragManager.MOVE , or DragManager.NONE . |
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 . |
dragInitiator | The component that initiated the drag. |
dragSource | The DragSource object containing the data being dragged. |
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. |
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:
Property | Value |
---|---|
action | The action that caused the event:
DragManager.COPY , DragManager.LINK ,
DragManager.MOVE , or DragManager.NONE . |
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 . |
dragInitiator | The component that initiated the drag. |
dragSource | The DragSource object containing the data being dragged. |
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. |
Tue Jun 12 2018, 01:40 PM Z