Solution is quite simple ;-)

Flash drawing / fill methods use XOR logic.
Here's what you want (swf and code):
http://gousable.com/flash/temp/doughnut1.html


frcfc> Navneet Behal wrote:

>> After putting a couple of hours on the problem, I am still in a daze 
>> on how would one go about making a doughnut shape (circle with cut-out 
>> in the center) using the drawing API.
>>
>> I'm not talking about drawing a circle using:
>>
>> lineStyle(BIGNUMBERHERE, color, alpha);
>>
>> I'd like to put in a gradient fill into a doughnut shape. And it has 
>> to be a doughnut, not a simulation of it (ie. not by drawing 2 circles 
>> over each other and keeping the center cirlce the same as the 
>> background color). Real dunkin' doughnut!
>>
>> Any ideas?
>>
>>
>>



-- 
Best regards,
 Gregory                            mailto:[EMAIL PROTECTED]
================================
http://GOusable.com
Flash components development.
Usability services.


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to