The placement attribute is the name of a subnode, not a node object
(and that if the named node cannot be found, the placement reverts to
default lexical placement). If you want to do something more
sophisticated, you need to override the determinePlacement method.
Details here: http://www.openlaszlo.org/lps/docs/guide/class-
inheritance.html#d0e17794
On 2007-07-11, at 00:07 EDT, Robin Sheat wrote:
On Wednesday 11 July 2007 15:42:56 P T Withington wrote:
There are two parent attributes:
parent == lexical parent
immediateparent == parent where the node was placed
Oh, duh, I knew that too, I just forgot it when it was important :)
Anyway, it still doesn't seem to work.
My actual code, this is in the edgedragger class:
<rightDragger timecode="${parent.timecode}" visible="false"
video="${parent.video}" numframes="${parent.numframes}"
placement="${parent.parent}" />
and then in the 'dragger' oninit (dragger being a superclass of
rightDragger):
Debug.write("dragger.oninit:",this,parent,immediateparent);
gives me:
dragger.oninit: «rightDragger#0» «edgedragger#1| .edgedragger»
«edgedragger#1| .edgedragger»
(where edgedragger is the lexical parent)
--
Robin <[EMAIL PROTECTED]> JabberID:
<[EMAIL PROTECTED]>
Hostes alienigeni me abduxerunt. Qui annus est?
PGP Key 0xA99CEB6D = 5957 6D23 8B16 EFAB FEF8 7175 14D3 6485 A99C
EB6D