Packageardisia.components.htmlDragDrop.events
Classpublic class HtmlDragDropEvent
InheritanceHtmlDragDropEvent Inheritance flash.events.Event

Event dispatched by the HtmlDragDrop class for file dragging and dropping.



Public Properties
 PropertyDefined By
  dropEffect : String
Returns the kind of operation that is currently selected, E.G.
HtmlDragDropEvent
  effectAllowed : String
Returns the kinds of operations that are to be allowed, E.G.
HtmlDragDropEvent
  file : HtmlDragDropFile
The dropped file.
HtmlDragDropEvent
  percentLoaded : Number
Only available on DRAG_PROGRESS events.
HtmlDragDropEvent
  types : Vector.<String>
The Mime types of the dragged data.
HtmlDragDropEvent
Public Methods
 MethodDefined By
  
HtmlDragDropEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, dropEffect:String = null, effectAllowed:String = null, types:Vector.<String> = null, file:HtmlDragDropFile = null, percentLoaded:Number)
HtmlDragDropEvent
Public Constants
 ConstantDefined By
  DRAG_ABORT : String = dragAbort
[static]
HtmlDragDropEvent
  DRAG_DROP_STARTING : String = dragDropStarting
[static]
HtmlDragDropEvent
  DRAG_ENTER : String = dragEnter
[static]
HtmlDragDropEvent
  DRAG_LEAVE : String = dragLeave
[static]
HtmlDragDropEvent
  DRAG_LOAD : String = dragLoad
[static]
HtmlDragDropEvent
  DRAG_LOAD_START : String = dragLoadStart
[static]
HtmlDragDropEvent
  DRAG_OVER : String = dragOver
[static]
HtmlDragDropEvent
  DRAG_PROGRESS : String = dragProgress
[static]
HtmlDragDropEvent
Property Detail
dropEffectproperty
public var dropEffect:String

Returns the kind of operation that is currently selected, E.G. the browsers dataTransfer.dropEffect. As of when I am writing this, only Chrome respects changes to this property.

The possible values are "none", "copy", "link", and "move".

Change the event value directly in the DRAG_ENTER event, and the change will be sent back to the browser.

The default value is null.

effectAllowedproperty 
public var effectAllowed:String

Returns the kinds of operations that are to be allowed, E.G. the browsers dataTransfer.effectAllowed. As of when I am writing this, only Chrome respects changes to this property.

The possible values are "none", "copy", "copyLink", "copyMove", "link", "linkMove", "move", "all", and "uninitialized".

Change the event value directly in the DRAG_ENTER event, and the change will be sent back to the browser.

The default value is null.

fileproperty 
public var file:HtmlDragDropFile

The dropped file.

The default value is null.

percentLoadedproperty 
public var percentLoaded:Number

Only available on DRAG_PROGRESS events. Indicates the percentage of the file that javascript has read into the data buffer.

typesproperty 
public var types:Vector.<String>

The Mime types of the dragged data.

The default value is null.

Constructor Detail
HtmlDragDropEvent()Constructor
public function HtmlDragDropEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, dropEffect:String = null, effectAllowed:String = null, types:Vector.<String> = null, file:HtmlDragDropFile = null, percentLoaded:Number)



Parameters
type:String
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)
 
dropEffect:String (default = null)
 
effectAllowed:String (default = null)
 
types:Vector.<String> (default = null)
 
file:HtmlDragDropFile (default = null)
 
percentLoaded:Number (default = NaN)
Constant Detail
DRAG_ABORTConstant
public static const DRAG_ABORT:String = dragAbort

DRAG_DROP_STARTINGConstant 
public static const DRAG_DROP_STARTING:String = dragDropStarting

DRAG_ENTERConstant 
public static const DRAG_ENTER:String = dragEnter

DRAG_LEAVEConstant 
public static const DRAG_LEAVE:String = dragLeave

DRAG_LOADConstant 
public static const DRAG_LOAD:String = dragLoad

DRAG_LOAD_STARTConstant 
public static const DRAG_LOAD_START:String = dragLoadStart

DRAG_OVERConstant 
public static const DRAG_OVER:String = dragOver

DRAG_PROGRESSConstant 
public static const DRAG_PROGRESS:String = dragProgress