Thanks Andre! I also need a close path after every set of drawing moves. I went back and looked at the documentation - and it still wasn't obvious to me. Gave me the mistaken impression that this is necessary only when one is using primitives like 'lineTo'.
Not a complaint, but perhaps a small way in which the documentation can be improved to make things a bit more obvious. Thanks again for the help. -shishir On Jan 11, 2008 12:44 PM, André Bargull <[EMAIL PROTECTED]> wrote: > Hello shishir, > > the "clear"-method resets only the viewing area, to begin a new path, > you need to invoke "drawview#beginPath()". > > - André > > > 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> > > -- "One thing I feel most passionately about: love of invention will never die." -Karl Benz
