Huh, that was easy. Turns out that if you don't call endFill(), you
can just draw the polygon, moveTo() the hole, and lineTo() the
outline of the hole, and it fills itself in.
I found an example of this in this article:
http://www.adobe.com/devnet/flash/articles/adv_draw_methods.html
Specifically in the drawGear() example.
OK
DAH
On Feb 16, 2007, at 4:54 PM, 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
--
David Ham
http://davidham.com :: [EMAIL PROTECTED]
_______________________________________________
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
_______________________________________________
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