[Laszlo-user] Overriding 'play'

Robin Sheat robin at kallisti.net.nz
Mon Jun 18 19:48:54 PDT 2007


With the test class included, it seems that you can't override the 'play' 
method of a class, but can override the others (well, 'stop' anyway). Why is 
this? This is with lps-3.3.3.

<?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>
	</class>
	
	<test name="testplay"/>
	
	<button text="Go!">
		<handler name="onclick">
			canvas.testplay.play();
			canvas.testplay.stop();
		</handler>
	</button>
	
</canvas>

-- 
Robin <robin at kallisti.net.nz> JabberID: <eythian at jabber.kallisti.net.nz>

Hostes alienigeni me abduxerunt. Qui annus est?

PGP Key 0xA99CEB6D = 5957 6D23 8B16 EFAB FEF8  7175 14D3 6485 A99C EB6D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20070618/7376cd85/attachment.bin


More information about the Laszlo-user mailing list