I’m trying to develop a simple real-time graphical editor into my web-based (flash) app. And I’m having two questions:
- After
MouseEvent.MOUSE_DOWNevent, I’m going to draw curve onMouseEvent.MOUSE_MOVE. AfterMouseEvent.MOUSE_UPevent is dispatched drawing of a curve is stopped and I need to inform other active clients what exactly was drawn. Hence, I need to vectorize drawn curve. After that I’ll replace drawn curve with vectorized. So, I’m having an array of points, and need to draw a natural curve passing through them. How can that be done? - I need to have an ability to erase drawn. Note that I can’t use drawing with white color as erasing, as I can have image on background. What is the simpliest way to erase?
Thank you in advance!
1 Answer