PDA

View Full Version : Convert lines to fills with AS



legeza
January 19th, 2005, 09:07 AM
Hello guys,

I'm making simple graphic editor, which allows user to draw a shape (with MovieClip.lineTo() method) and after that use this shape as a mask for another movie clip. Is it possible to convert my 'lined' shape to fill (but not just filling it with MovieClip.beginFill() and MovieClip.endFill() methods)?

I would highly appreciate your help. Thanks!

Jerryscript
January 19th, 2005, 12:20 PM
There is no straightforward way to convert lines to fills. Your best bet is to have the lines themselves drawn as very thin rectangels with a line stroke set to the smallest possible setting.