[flexcoders] Re: Drawing shapes with holes and applyng them as mask in AS3
--- In flexcoders@yahoogroups.com, gabriela.perry [EMAIL PROTECTED] wrote: Hi, Troy. It works if I apply it as a circle or a rectangle... What I need is a rectangle with a hole in the middle. If you set a solid fill, then draw a rectangle, then drwa a circle, then put it on the stage (addChild), you have the effect Im after (the rect with the hole). But when I apply it as a mask, it doesnt works... The link you posted had examples of simple shapes as masks: several rect, several circles... Anyways, as soon as I figure out a solution, Ill let you know. Couldn't you just turn the shape that's what you want into a bitmap and mask with that?
[flexcoders] Re: Drawing shapes with holes and applyng them as mask in AS3
Hi, Troy. It works untill you apply it as a mask... I had allready found it here: http://flashonthecheap.com/advanced/more-on-graphics-in-actionscript-3/ I think it has to work somehow... we've been doing this with movieclips for years... Im working on it. As soon as I have a solution Ill let you know. Thanx guys for your attention :0)
Re: [flexcoders] Re: Drawing shapes with holes and applyng them as mask in AS3
It works until you apply it as a mask... It must work as a mask because that's exactly how I use it in my code, to cut a circle out a box. What results do you get when you use it as a mask? Troy.
[flexcoders] Re: Drawing shapes with holes and applyng them as mask in AS3
Hi, Troy. It works if I apply it as a circle or a rectangle... What I need is a rectangle with a hole in the middle. If you set a solid fill, then draw a rectangle, then drwa a circle, then put it on the stage (addChild), you have the effect Im after (the rect with the hole). But when I apply it as a mask, it doesnt works... The link you posted had examples of simple shapes as masks: several rect, several circles... Anyways, as soon as I figure out a solution, Ill let you know.