Name

basedragimage

Synopsis

LZX: basedragimage
JavaScript: basedragimage
Type: Class
Access: public
Topic: Incubator.Components
Declared in: lps/components/incubator/draglib.lzx

Description

the visual representation of an object being dragged. See checkdragstate for usage details

Superclass Chain

node (LzNode) » view (LzView) » basedragimage

Known Subclasses

Details

Properties (2)

dropgroup
<attribute name="dropgroup" type="string" value="droptarget" />
public var dropgroup : String;
the group that drop targets will register with
source
<attribute name="source" value="null" />
public var source;
the view where the drag was initiated (read-only)

Methods (2)

startdrag()
<method name="startdrag" args="src, xoffset, yoffset" />
public function startdrag(src, xoffset, yoffset);
called to start the drag action, called by checkdrag
stopdrag()
<method name="stopdrag" />
public function stopdrag();
called to stop the drag action, called by checkdrag. If this is not over a drop target, it animates back to its origin (failed drop). Otherwise it disappears (successful drop).

LZX Synopsis

<class name="basedragimage" extends=" LzView ">
  <attribute name=" dropgroup " type="string" value="droptarget" />
  <attribute name=" source " value="null" />
  <method name=" startdrag " args="src, xoffset, yoffset" />
  <method name=" stopdrag " />
</class>

JavaScript Synopsis

public basedragimage extends  LzView  {
  public var dropgroup  : String;
  public var source ;
  prototype public function startdrag (src, xoffset, yoffset);
  prototype public function stopdrag ();
}