Easy ColorPicker for everything at stage
Posted by Den Ivanov on May 24th, 2007How to get color for any pixel at stage, including Sprites, video, Bitmaps etc...
Easy. Just 6 lines of code.
var pickerBMP:BitmapData = new BitmapData(1,1,false,0x0);
stage.addEventListener(MouseEvent.MOUSE_MOVE,checkColor);
function checkColor(e:Event) {
pickerBMP.setPixel(0,0,0xFFFFFF); // enter background color of your SWF
pickerBMP.draw(stage,new Matrix(1,0,0,1,-mouseX,-mouseY));
trace (pickerBMP.getPixel(0,0));
}

Follow me!