It worked for me if I put the `setPlay` method as the first method in
the class.
But we really need to fix http://jira.openlaszlo.org/jira/browse/
LPP-4172 in the compiler.
On 2007-06-20, at 01:44 EDT, Robin Sheat wrote:
On Wednesday 20 June 2007 00:38:32 P T Withington wrote:
<method name="setPlay" args="value">
this.addProperty('play', value);
</method>
This doesn't seem to work, at least like this:
<?xml version="1.0" standalone="no"?>
<!DOCTYPE canvas SYSTEM "http://www.openlaszlo.org/lps-latest/tools/
lzx.dtd">
<canvas width="500" height="500" debug="true">
<class name="test">
<method name="play">
Debug.write("play was called");
</method>
<method name="stop">
Debug.write("stop was called");
</method>
<method name="setPlay" args="value">
this.addProperty('play', value);
</method>
</class>
<test name="testplay"/>
<button text="Go!">
<handler name="onclick">
canvas.testplay.play();
canvas.testplay.stop();
</handler>
</button>
</canvas>
--
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