Re: [Flashcoders] using Bitmap for hitArea

2009-06-23 Thread Andrew Sinning
Thanks Leandro. I took an initial look at this, but got scared off by the fact that this is going to make mouseUp/Down/Enter/Leave and click detection really complicated, much more complicated than anything I've ever had to deal with before. There will be follow-up questions, but first I need

Re: [Flashcoders] using Bitmap for hitArea

2009-06-22 Thread Leandro Ferreira
BitmapData.hitTest: http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=1410.html Leandro Ferreira On Mon, Jun 22, 2009 at 19:21, Andrew Sinning wrote: > If I draw a circle using the Graphics and Shape classes, and then add the > sha

[Flashcoders] using Bitmap for hitArea

2009-06-22 Thread Andrew Sinning
If I draw a circle using the Graphics and Shape classes, and then add the shape to a sprite, I can use the sprite for the hitArea of another sprite and it works just fine. Everything within the circle is a hit, everything outside of it is a miss. However, if I create a sprite containing a Bit