Thanks Alex, I had already tried this. But as I mentioned in my first post, the Sprite has different shapes. these could be for example the outline of a triangle, of a circle etc. and this is what I want to fill. The beginFill works great for the squares and rectangles.
So what I'm guessing is that I need to find the bounds of the outline and fill whatever is inside that. I'm not sure there is something like this available within ActionScript (maybe some custom API). Thanks On 9/14/07, Alex Harui <[EMAIL PROTECTED]> wrote: > > A sprite has width and height, so normally you can fill the whole thing > in with > > > > beginFill(0xFF0000) //red > > drawRect(0, 0, width, height); > > endFill(); > > > ------------------------------ > > *From:* [email protected] [mailto:[EMAIL PROTECTED] *On > Behalf Of *Claudia Barnal > *Sent:* Friday, September 14, 2007 8:47 AM > *To:* [email protected] > *Subject:* Re: [flexcoders] Fill outline of a Sprite > > > > Hi Alex, I appreciate your help, but could you be a bit more explicit? > > As far as I know, the beginFill requires you to assign the shape by using > the lineTo subsequently. > > In my case I don't have all the coordinates of the lines of the shape. > > Thanks, > Claudia > > On 9/14/07, *Alex Harui* <[EMAIL PROTECTED]> wrote: > > Flash.graphics.beginFill > > > ------------------------------ > > *From:* [email protected] [mailto: [EMAIL PROTECTED] *On > Behalf Of *Claudia Barnal > *Sent:* Friday, September 14, 2007 7:21 AM > *To:* [email protected] > *Subject:* [flexcoders] Fill outline of a Sprite > > > > Hi, > > How can I fill the outline of Sprite? > > I have Sprites with different shapes, but only the outline. And I want > to give the shapes a background color. > > In Flash you can do something like a fill with the Paint Bucket > Tool... but how can you do that in ActionScript? > > Any pointers? > > Thanks, > Claudia > > > > >

