Hola, alguien me puede ayudar y decirme en que parte stoy fallando para crear un color picker,
cpicker1 codigo:
cpicker1 and cpicker 2 code of sprite:
onClipEvent (construct)
{
allowUserColor = true;
color = 13421772;
columns = 20;
direction = "DR";
useAdvancedColorSelector = false;
useNoColorSelector = false;
}
__________________________________
code of main frame
bubbleh_co.addEventListener("change", lObj2);
var colorObj1 = new Object();
cpicker1.color = bgColor;
cpicker1.addListener(colorObj1);
colorObj1.change = function (evt)
{
var _loc1 = evt.getRGB();
bgColor = Number("0x" + _loc1);
startLED();
};
var colorObj2 = new Object();
cpicker2.color = bgColor;
cpicker2.addListener(colorObj2);
colorObj2.change = function (evt)
{
var _loc1 = evt.getRGB();
glowColor = Number("0x" + _loc1);
startLED();