I don't want to be the downsider here (I hope I am not), but I had similar problems when using multiple transparent PNG overlaid on top of each other ... Let me explain, a transparent PNG has a 'transparent' alpha=0 background, but it has shades of alpha where things are not 100% opaque or 0% opaque (ie: transparent) all in all, when the alpha is not equal to 100% or 0%, I had the alphas being added together... which resulted in almost the same bug (as far as I can see) that Joao pointed out in his file ....
hth :S Cedric > cheers joao! :) > > how do you create the BitmapData object from the png? i had some > similar issues with > transparent png's and solved them by using it this way: > new BitmapData(imgWidth_num, imgHeight_num, true, 0x00000000); > > what did the trick in my case was setting the fillColor to > '0x00000000'... just a shot > in the dark though ;) > > hth! > > henrik > -- __digital spices__ Marketing & Communication home: > www.digitalspices.com This electronic mail transmission contains > confidential information intended only for the person(s) named. Any > use, distribution, copying or disclosure by any other person is > strictly prohibited. If you have received it by mistake please let > us know by reply and then delete it from your system; you should > not copy it or disclose its contents to anyone. João Saleiro wrote: >> >> Hey, >> >> I've been playing with Neave's WaterEffect class ( http:// >> www.neave.com/webcam/api/com/neave/webcam/effects/displace/ >> WaterEffect.html ) to animate a PNG element with transparency. I >> had made a just a slight change - removed the blue tint filter - >> and I have achieved the result available on http://www.webfuel.pt/ >> jsaleiro/tests/TestElementoAnimado.html . >> >> On the top, there's the element being animated. >> On the bottom, it's the original element. >> >> As you can see, it seems the filter is destroying the alpha >> channel of the PNG image. I've spent several hours messing with >> the code trying to find a solution, but I was unable to find one. >> Any suggestions that might help? >> >> I am using Neave's class exactly like he uses it, but if you need >> the source code just let me know. >> >> Thanks in advance, >> -- >> João Saleiro >> Chief Technology Officer >> >> <mime-attachment.gif> <mime-attachment.gif> <mime-attachment.gif> >> Tlm 1: +351 916 077 097 Skype: joao.saleiro >> Tlm 2: +351 968 203 370 Email/MSN: [EMAIL PROTECTED] >> <mime-attachment.gif> >> <mime-attachment.gif> <mime-attachment.gif> >> www.webfuel.pt >> _______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
