Created images aren’t transparent in Flash

Monkey Forums/Monkey Bug Reports/Created images aren’t transparent in Flash

devolonter(Posted 2012) [#1]
Images created with CreateImage function aren’t transparent in Flash target but transparent in other targets by default.

Fix:

Replace
[monkeycode]var bitmapData:BitmapData=new BitmapData( width,height );[/monkeycode]
by
[monkeycode]var bitmapData:BitmapData=new BitmapData( width,height, true, 0 );[/monkeycode]
in CreateSurface function