Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Alpha transparency not working on PNGs

Guest
Jun 17, 2011 Jun 17, 2011

I'm currently constructing a scrollbar as part of a website using as3 and png images. I've got loaders for each image inside of an array, and when loading on each image finishes, it's added as a child to a sprite on the stage. I've got a background image with no transparency, which loads fine. On top of that, I've got the actual slider, which loads the RGB data, and appears to be using the alpha as a 1-bit mask. So anywhere that I have partial transparency, it just shows up as black, where it should be showing the background underneath. I can't find any attribute that will change the way loaded images process alpha transparency. Does anyone have a solution for this? Whatever knowledge you have on the issue would be much appreciated.

Thanks for your time,

-tjuicet

TOPICS
ActionScript
527
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 18, 2011 Jun 18, 2011

check if your .pngs are 32bit pngs for sure. 8 bit pngs can hold only 256 colors and may produce strange look. Could you attach some of your .png files here?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 18, 2011 Jun 18, 2011
LATEST

I am not sure what you are doing but loading has nothing to do with image transparency. If images you load has transparency - it will be preserved unless you manipulate BitmapData further and somehow remove transparency.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines