[Laszlo-user] changing variable values... How?
Cary Clark
caclark at cox.net
Mon Mar 24 11:20:51 PDT 2008
This code worked fine running OL 4.0.10 on Windoze XP. I think the OL
folks will caution you to qualify your method calls with the instance
variable, even if it's "this".
Alexander Wallace wrote:
> 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