BitmapData adding alphas

Hi guys,
I am trying to draw multiple transparent rectangles on top of each other. Unfortunately Flash never adds up my alpha values but replaces them.
For example when I draw one rectangle with say a 0x0F alpha with drawRect and another one with the same alpha on top I don’t get a 0x1E alpha but a 0x0F alpha.
Any Ideas?

Regards,
xenel

Doesn’t matter anymore, copyPixels now does what I want. Bitmap Data needs some serious drawing tools like the graphics class.

try out processing…

[QUOTE=Dom_;2343115]try out processing…[/QUOTE]

That’s hardly a solution.

Glad to hear you figured it out, xenel

yeah i know, i just meant that processing is, in my opinion, better when it comes to bitmaps