On 10/4/05, Prasad Dhananjaya <[EMAIL PROTECTED]> wrote: > Have a simple question about drawing on the canvas. > > Below code draws an arrow between mousedown point and mouseup point. > It works well. But... > > When I move canvas's scrollbar, arrow didn't move. Means it is NOT > on the canvas.Want to draw it ON the canvas. Tried several ways. > But failed. (I drawing square on the canvas using fillRect() is OK)
It indeed is on the Canvas, but it's not a "child" of the Canvas, and that's the reason it doesn't scroll along with other children. The solution is to make it a child (add a new object as a child and draw on top of that object instead). ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/