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] <mailto:[EMAIL PROTECTED]> >
wrote:

Flash.graphics.beginFill

 

________________________________

From: [email protected] [mailto: flexcoders@
<mailto:flexcoders@> yahoogroups.com <http://yahoogroups.com> ] 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

 

 

Reply via email to