/ Published in: ActionScript 3
If you need to use bitmapData.draw() method on a DisplayObject that has a mask as a child then it can be awkward getting it to work properly. Using Thomas John's getRealBounds method is a great solution.
URL: http://blog.open-design.be/2010/01/26/getbounds-on-displayobject-not-functioning-properly/