So the script is suppose to make the pixel see though when i click on it… why doesnt it?
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