[Laszlo-user] Troubles with erasing previous elements on a drawview
Shishir Ramam
sramam at gmail.com
Fri Jan 11 09:32:38 PST 2008
Hi,
I am trying to use the drawview and incorporate a user edit.
The way I'd like to do it clear the previous elements and then redraw.
However as this simple script illustrates, a clear and redraw lands up
redrawing the old and new.
Would appreciate any pointers to what I am missing here.
I'm using the 4.0.7 SDK + Vista + swf7 + Firefox.
Any help is appreciated.
-shishir
<canvas>
<drawview width="400" height="400">
<handler name="oncontext">
this.strokeStyle = 0x000000;
this.rect(10,10,30,30);
this.stroke();
this.clear();
this.rect(30,30,60,60);
this.stroke();
</handler>
</drawview>
</canvas>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20080111/4671f2ef/attachment.html
More information about the Laszlo-user
mailing list