Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
An event sent between DragManagers that are
in separate but trusted ApplicationDomains to
handle the dispatching of DragEvents to the drag targets.
One DragManager has a DragProxy that moves with
the mouse and looks for changes to the dropTarget.
It cannot directly dispatch the DragEvent to a potential
target in another ApplicationDomain because code
in that ApplicationDomain would not type-match on DragEvent.
Instead, the DragManager dispatches a InterDragManagerEvent
that the other ApplicationDomain's DragManager listens
for and it marshals the DragEvent and dispatches it to
the potential dropTarget.
public var dragEventType:String
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
The event type for the DragEvent to be used
by the receiving DragManager when creating the
marshaled DragEvent.
See also
public var dropTarget:DisplayObject
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
The potential drop target in the other ApplicationDomain
(which is why it is a DisplayObject and not some other class).
public function InterDragManagerEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, localX:Number, localY:Number, relatedObject:InteractiveObject = null, ctrlKey:Boolean = false, altKey:Boolean = false, shiftKey:Boolean = false, buttonDown:Boolean = false, delta:int = 0, dropTarget:DisplayObject = null, dragEventType:String = null, dragInitiator:IUIComponent = null, dragSource:DragSource = null, action:String = null, draggedItem:Object = null)
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
Constructor.
Parameters | 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 = false ) — Specifies whether the behavior associated with the event can be prevented.
|
|
| localX:Number (default = NaN ) — The horizontal coordinate at which the event occurred relative to the containing sprite.
|
|
| localY:Number (default = NaN ) — The vertical coordinate at which the event occurred relative to the containing sprite.
|
|
| relatedObject:InteractiveObject (default = null ) — A reference to a display list object that is related to the event.
|
|
| 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.
|
|
| buttonDown:Boolean (default = false ) — Indicates whether the primary mouse button is pressed (true) or not (false).
|
|
| delta:int (default = 0 ) — Indicates how many lines should be scrolled for each unit the user rotates the mouse wheel.
|
|
| dropTarget:DisplayObject (default = null ) — The potential drop target in the other application domain (which is why it is a DisplayObject and not some other class).
|
|
| dragEventType:String (default = null ) — The event type for the DragEvent to be used by the receiving DragManager when creating the marshaled DragEvent.
|
|
| 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 .
|
|
| draggedItem:Object (default = null ) — An object representing the item that was dragged.
|
public static const DISPATCH_DRAG_EVENT:String = dispatchDragEvent
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
Dispatch a DragEvent event to a target in another ApplicationDomain.
The receiving DragManager marshals the DragEvent and dispatches it
to the target specified in the dropTarget
property.
Mon Jul 9 2012, 07:18 PM -04:00