In a collision detection class on the tink blog, the idea is to use the hitTestObject pre-judgment provided by flash to detect Collision Based on Pixel overlap.
Link: http://www.tink.ws/blog/as-30-hittest
The Code is as follows: package ws. tink. display
{
Importflash. display. BitmapData;
Import flash. display. BlendMode;
Import flash. display. DisplayObject;
Import flash. display. Sprite;
Import flash. geom. ColorTransform;
Import flash. geom. Matrix;
Import flash. geom. Point;
Import flash. geom. Rectangle;
Public class HitTest
{
Public static function complexHitTestObject (target1: DisplayObject, target2: DisplayObject,Accurracy: Number = 1): Boolean
{
Return complexIntersectionRectaNgle (target1, target2, accurracy). width! = 0;
}
Public static function intersectionRectangle (target1: DisplayObject, target2: DisplayObject): Rectangle
{
// If either of the items don't have a reference to stage, thenthey are not in a display list