# Bitmap API Transparency

**URL:** <https://forum.kirupa.com/t/bitmap-api-transparency/184821>\
**Category:** flash\
**Created:** [April 8, 2006, 3:58am UTC](https://forum.kirupa.com/t/bitmap-api-transparency/184821 "2006-04-08T03:58:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Templarian](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/templarian/32/7152_2.png) [@Templarian](https://forum.kirupa.com/u/Templarian)\
**Post date:** [April 8, 2006, 3:58am UTC](https://forum.kirupa.com/t/bitmap-api-transparency/184821/1 "2006-04-08T03:58:33Z")

</div>

So the script is suppose to make the pixel see though when i click on it… why doesnt it?

```auto
import flash.display.BitmapData;

var guiBitmapData:BitmapData = new BitmapData(200, 200, true, 0xFFFFFFFF);
var gui:MovieClip = this.createEmptyMovieClip("gui", this.getNextHighestDepth());
gui.attachBitmap(guiBitmapData, this.getNextHighestDepth());

function d(x, y, color) {
    guiBitmapData.setPixel(x, y, color);
}
gui.onPress = function(){
    d(_xmouse,_ymouse,0x00FFFFFF);
}

```

Thanks.

//edit,  
This is where it told me that 0x00FFFFFF was transparency…  
[http://www.macromedia.com/devnet/flash/articles/image\_api\_print.html](http://www.macromedia.com/devnet/flash/articles/image_api_print.html)

---

<div class="post-metadata">

**Author:** ![Templarian](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/templarian/32/7152_2.png) [@Templarian](https://forum.kirupa.com/u/Templarian)\
**Post date:** [April 8, 2006, 4:17am UTC](https://forum.kirupa.com/t/bitmap-api-transparency/184821/2 "2006-04-08T04:17:54Z")

</div>

What you want to do is use setPixel32 instead of setPixel.

Hope that helps.
