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?

graphics.lineStyle(1, 0x000000);
graphics.beginFill(0xff0000);
graphics.moveTo(10, 10);
graphics.lineTo(90, 10);
graphics.lineTo(90, 90);
graphics.lineTo(10, 90);
graphics.lineTo(10, 10);
graphics.moveTo(30, 30);
graphics.lineTo(70, 30);
graphics.lineTo(70, 70);
graphics.lineTo(30, 70);
graphics.lineTo(30, 30);
graphics.endFill();

Cheers,
Claus.

--
claus wahlers
cĂ´deazur brasil
http://codeazur.com.br/
http://wahlers.com.br/claus/blog/

--
READ CAREFULLY. By reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies ("BOGUS AGREEMENTS") that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer.
_______________________________________________
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