.tmp_9A313984373F53C07F61E34DF98834E8_classes-tutorial-$4.lzx
<canvas width="100%" height="80">
<class name="SpecialButton" extends="button" onclick="changeLabel()">
<attribute name="changeToLabel" value="Clicked!
" type="string"/>
<method name="changeLabel">
var newLabel = this.changeToLabel;
this.setAttribute('text', newLabel);
</method>
</class>
<simplelayout axis="y" spacing="10"/>
<SpecialButton>Not clicked</SpecialButton>
<SpecialButton changeToLabel="Thank You!">Please click me!</SpecialButton>
</canvas>