PDA

View Full Version : setting alpha on semi transparent png



meldon
May 3rd, 2009, 11:19 AM
Hey all,

I've been developing in AS2 for a few years now, and I'm learning AS3 at the moment. I ran into a problem about setting alpha on a PNG image.

I have a movieclip that holds a semi-transparent PNG image which comes straight from the library. Now I want to edit the alpha property of the movieclip. In AS2 it all works fine but when I set the alpha property in AS3 all semi-transparent pixels in the PNG image will fill with black first; then the alpha setting is applied.

Do I need to save my PNG's in particular way or do I need to edit settings in Flash to display correctly? Any help is much appreciated.

meldon
May 3rd, 2009, 05:03 PM
er.. found the problem, as2 -> as3 migration, values run from 0 - 1 instead of 0 - 100 :doh: so nevermind!