This has been talked about in the Archives I believe ... You could search it , but I remember that to be able to create a ring using the drawing API, you first need to draw the outer circle clockwise and then draw your innercircle counter-clockwise all that inside beginFill and endFill.
That's what I remember, but I might be wrong somewhere ... Look it up in the Archives (this or last year), it was a post by Helen Triolo if I remember right. HTH Alain -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Janis Radins Sent: 20 octobre 2006 10:56 To: Flashcoders mailing list Subject: Re: [Flashcoders] newbie question - drawing a ring check out www.mediaverk.lv/asd it might give you just what you need 2006/10/20, Guntur N. Sarwohadi <[EMAIL PROTECTED]>: > > Hello David, > > You can use flash drawing API. You might use just 2 drawing methods: > > moveTo(x,y) moves a pointer from where you want to start drawing from > > and > > curveTo(cpx, cpy, x, y) draws a curve with cpx is the location of the > curve control point by x, cpx is the curve control point by y, and x & > y is the final point / destination to draw > > you might as well define the line style using lineStyle or filling it > with a color using beginFill and then endFill. > > it's all in the help / manual located at the IDE.. > > Hope this helps, > > Guntur N. Sarwohadi > > On 10/20/06, David Cake <[EMAIL PROTECTED]> wrote: > > > > New to the list, new to Flash/flex, experienced java/C/web > > etc coder. Please excuse me if my question is in a FAQ that I should > > have read somewhere (and feel free to direct me to such resources) > > > > I want to create a vector ring shape, a circle with an > > excised inner circle, in code. I don't want to use tricks like > > gradient fills that make it look like a ring - I want sharp borders > > (and there are a lot of additional graphic elements that I want to > > look like part of the same object within the ring). I haven't been > > able to find any examples that create vectors with internal holes to > > them. > > Regards > > David > > _______________________________________________ > > 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 > _______________________________________________ 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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.8/489 - Release Date: 2006-10-20 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.8/489 - Release Date: 2006-10-20 _______________________________________________ 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