Description
the visual representation of an object being dragged.
See
checkdragstate for usage details
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" />
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" />
</class>
JavaScript Synopsis
public
basedragimage extends
LzView
{
prototype public function
startdrag
(
src,
xoffset,
yoffset);
}