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
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to