A bitmap either has transparency or it doesn't; you need to set the alpha flag to true or you cannot get transparency data.
Another thought would be blend modes - screen the flame w/black bg on your image and draw() the result. I know that doesn't answer your q but it will give you the intended result if you're not able to get any further. Sent from my iPhone On Sep 3, 2010, at 7:29 AM, Paul Andrews <p...@ipauland.com> wrote: > On 03/09/2010 13:32, George Jones wrote: >> Hi; >> I think I've done my homework on this, but I can find no answers. Is it >> possible, using BitmapData, to make part--and only part--of a bitmap >> transparent? I'm presuming the answer is "no". If that is the case, would >> you be so kind as to inform me so that I quit beating my head against the >> wall? I've asked the following question on about 5 forums and nobody has >> answered it, which I presume means it's over most people's heads...but >> certainly not this list. The net effect which I'm trying to create is >> programmically created fire that burns over a background image I select. >> What I now have is such fire over a black background (or any other color I >> choose), not over a jpg, for example. >> >> I'm trying to tweak a script I found online to work for my application. >> The problem I am having is to make a certain part of the bitmap that >> is created by code transparent...but only a certain part of it. The >> code has the following: >> >> _fire = new BitmapData(865, 92, false, 0xffffff); >> >> Note >> the alpha flag must be set to false, which is the source of my problem, > > It certainly is. Bitmaps aren't transparent unless the flag is set to true. > You are wasting your time trying to make bits of an opaque bitmap transparent. > > Paul > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders