How about making the doughnut shape as a movieclip and dynamically
applying it as a mask layer to a gradient filled cirle you create at
run-time? You could even draw the mask layer at run-time instead of
using a pre-drawn one.
JOR
___________________________________
=== James O'Reilly
===
=== SynergyMedia, Inc.
=== www.synergymedia.net
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?
Thanks for your time.
Regards,
Navneet
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders