[Laszlo-user] changing variable values... How?

Alexander Wallace aw at rwmotloc.com
Mon Mar 24 11:07:09 PDT 2008


Hi all.. this is a really stupid question, but I can't find out why it  
doesn't work... I'll type some pseudo code here:

<canvas>
	<attribute name="someAttr" type="boolean" value="false" />
	<method name="init">
		super.init();
		Debug.write("someAttr value before an attempt to change",  
getAttribute("someAttr"));
		setAttribute("someAttr", true);
		Debug.write("someAttr value after attempt to change",  
getAttribute("someAttr"));
	</method>
</canvas>

Well... No matter what combination of accessing the var I've tried, i  
can't change the original value... What am i doing wrong?

Thanks!


More information about the Laszlo-user mailing list