Re: Image with transparent background

Yes, i can put PNG to work. My problem is all about the transparency. The image load correctly but the background, that is transparent in original image, appears with white color.. :-/ Here is the code i have to load the image: [quote]var ball:Bit…

Viewing 1 to 1 (1 Total)
Re: Image with transparent background

FNeves

FNeves
Total Posts: 6
Joined: March 07, 2012

Yes, i can put PNG to work. My problem is all about the transparency.
The image load correctly but the background, that is transparent in original image, appears with white color.. awkward

Here is the code i have to load the image:

var ball:Bitmap = new Bitmap(Assets.getBitmapData ("assets/ball.png"));
addChild(ball);

Posted on March 08, 2012 at 3:20 AM