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 Bitmap drawn from this same circle and try to use this sprite for the hitArea, the entire rectangle becomes the hit area. I've played around with different alpha-levels, using white and black, and using the opaqueBackground setting. Nothing seems to work. Am i missing something or is this a known limitation?

I'm using AS3 under Flash CS3.

Flashcoders mailing list

Reply via email to