scripting-tutorial-$12.lzx
<canvas width="100%" height="200">
<window x="100" y="30" title="Window 2" name="windowTwo">
<text>This is the second window.</text>
</window>
<window x="20" y="20" width="200" title="Simple Window">
<button text="My button" onclick="this.moveWindow()">
<method name="moveWindow">
var increment = 20;
var originalX = this.parent.parent.windowTwo.x;
var newX = originalX + increment;
this.parent.parent.windowTwo.setAttribute('x', newX);
</method>
</button>
</window>
</canvas>
Cross References
Named Instances