1 Reply Latest reply on Aug 16, 2007 3:49 PM by FlashTastic


    jabresner Level 1
      I'm trying to create a color picker that will let me mouse over an image a determine what value the pixel color is. I found the following code in the Flash help. But, when I use it, it creates a color block over my image. I understand why it's done, but it's not what I'm trying to do. Instead, I want to use the getPixel for my bitmap, not the bitmapData object. How do I do this?
        • 1. getPixel
          FlashTastic Level 1
          Try using this example:

          Create a new flash document and import your bitmap to the library. Set the linkage ID to "myImage".

          On the stage, create the following:
          a dynamic textBox called color_txt
          a movieClip called box (just a small square will do)

          Then attach the following code to the timeline and you should have what you're looking for.