Re: [Flashcoders] Using BitmapData.draw() with masked items

2011-07-28 Thread allandt bik-elliott (thefieldcomic.com)
thanks for your time guys henrik got it - i stored a reference to the item, it's parent and it's mask and pulled them into another sprite and grabbed that - worked a treat private function addItemToBitmapData(item:Sprite, bmd:BitmapData, mat:Matrix):void { var itemParent:DisplayObjectContainer; v

Re: [Flashcoders] Using BitmapData.draw() with masked items

2011-07-28 Thread Ktu
if you are using a rectangular mask, try just using scrollRect instead. var container:Sprite = new Sprite() container.addChild(myBitmap) container.scrollRect = new Rectangle (0, 0, myBitmap.width, myBitmap.height); make the rectangle whichever dimensions you care about, but that might do it...

Re: [Flashcoders] Using BitmapData.draw() with masked items

2011-07-28 Thread allandt bik-elliott (thefieldcomic.com)
hmm interesting - okay - i'll give that a shot best a On 28 July 2011 17:12, Henrik Andersson wrote: > Sounds like the classical "mask not being in a display list" issue, but in > a new variation. > > Ensure that both the mask and the maskee is in the container passed to the > draw call. >

Re: [Flashcoders] Using BitmapData.draw() with masked items

2011-07-28 Thread Henrik Andersson
Sounds like the classical "mask not being in a display list" issue, but in a new variation. Ensure that both the mask and the maskee is in the container passed to the draw call. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://ch

[Flashcoders] Using BitmapData.draw() with masked items

2011-07-28 Thread allandt bik-elliott (thefieldcomic.com)
hey folks I'm having an issue with BitmapData.draw(). If i try to use it on a masked item, i get strange results (usually nothing). If i unmask the item first, i get a result as expected but obviously no mask. Is there any way to do both? I'm thinking I'll have to loop through all of the pixels i