Description
the visual representation of an object being dragged.
See
checkdragstate for usage details
Details
Properties (8)
-
dropgroup
-
<attribute name="dropgroup" type="string" value="droptarget" />
public var dropgroup : String;
the group that drop targets will register with
-
dropped
-
<attribute name="dropped" value="false" />
-
_onstopdel
-
<attribute name="_onstopdel" value="null" />
-
source
-
<attribute name="source" value="null" />
the view where the drag was initiated (read-only)
-
startx
-
<attribute name="startx" type="number" value="0" />
private var startx : Number;
-
starty
-
<attribute name="starty" type="number" value="0" />
private var starty : Number;
-
xdoffset
-
<attribute name="xdoffset" value="null" />
-
ydoffset
-
<attribute name="ydoffset" value="null" />
Methods (4)
-
dropcomplete()
-
<method name="dropcomplete" args="source" />
private function dropcomplete(source);
-
hideme()
-
private function hideme();
-
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="
lz.basedragimage" extends="
LzView
">
<attribute name="
dropgroup
" type="
string" value="
droptarget" />
<attribute name="
dropped
" value="
false" />
<attribute name="
source
" value="
null" />
<attribute name="
startx
" type="
number" value="
0" />
<attribute name="
starty
" type="
number" value="
0" />
<attribute name="
xdoffset
" value="
null" />
<attribute name="
ydoffset
" value="
null" />
<method name="
startdrag
" args="
src,
xoffset,
yoffset" />
</class>
JavaScript Synopsis
public
lz.basedragimage extends
LzView
{
prototype private function
hideme
();
prototype public function
startdrag
(
src,
xoffset,
yoffset);
}