[Flashcoders] Strange Masking Bug in Flash

2008-07-03 Thread peter ginsberg
Hoping to get some help with a bizarre bug that has been haunting development of the current game we're working on. The situation is this: We have character animations where we swap in dynamic clothing. We developed a system where we add patterns dynamically to the clothing by doing the

Re: [Flashcoders] Strange Masking Bug in Flash

2008-07-03 Thread Allandt Bik-Elliott (Receptacle)
are the masks rendered as bitmaps? On 3 Jul 2008, at 16:40, peter ginsberg wrote: Hoping to get some help with a bizarre bug that has been haunting development of the current game we're working on. The situation is this: We have character animations where we swap in dynamic clothing. We

Re: [Flashcoders] Strange Masking Bug in Flash

2008-07-03 Thread Ashim D'Silva
For patterns on Shapes, look no further that the beginBitmapFill function. It takes a bitmap and repeats it on a Shape. You call it from the Shape's graphics functions; as follows: var bd:BitmapData = Your bitmapData of your repeatable pattern goes here; var sh:Shape = new Shape();

Re: [Flashcoders] Strange Masking Bug in Flash

2008-07-03 Thread peter ginsberg
On Thu, Jul 3, 2008 at 12:07 PM, Allandt Bik-Elliott (Receptacle) [EMAIL PROTECTED] wrote: are the masks rendered as bitmaps? Yay, thank you! I'm not sure why I didn't try this before, but you're right -- if I set cacheAsBitmap to true on the mask and the masked clip, the issue disappears.

RE: [Flashcoders] Strange Masking Bug in Flash

2008-07-03 Thread Keith Reinfeld
Peter, when you build the swf, the one on the left has a big block of the masked object showing for no reason. The glitch in the mask corresponds to certain stroke elements. In the case of your example: the strokes that form a 'Y' (to put it delicately) and that do not conform to the