1 Reply Latest reply on Sep 29, 2008 11:26 AM by RossRitchey

    transparent image not recognized as transparent

    RossRitchey Level 4
      I am loading a PNG with transparency into a UILoader. This part works correctly, transparency and all.

      Now I need to find out the rectangle that is transparent. I found the getColorBoundsRect() function, and copied the UILoader.content into a bitmapData, but when I run the getColorBoundsRect it comes back with a Rectangle that has no width or height - IE, it finds no transparent pixels.

      To test, I tried using getPixel32 on an area of the image I know is transparent, and it comes back to tell me that the pixel alpha is 255?

      Applicable code is attached.