Yes -- draw the second (inner) shape before you do the endFill and it will be punched out. If you need the final shape to be a mask, draw the inner shape in the reverse direction from how you drew the outer shape (ie, counter-clockwise if the original shape was drawn clockwise). http://flash-creations.com/notes/dynamic_drawingapi.php at the bottom of the page

Helen

--
http://flash-creations.com
http://i-technica.com


David Ham wrote:

Does anyone know how to erase part of an area that was created with the drawing API? I need to be able to draw a polygon, and then draw another polygon inside it and "punch" it out. For example, I need to draw a square and then punch a square hole in it. Anyone ever done this before?

OK
DAH






_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to