code:

slot.onRelease = function() {
myColor = new Color(this);
myColor.setRGB(0x000000);
}