if (this.doSendValueEvent) {
classroot.updateColor();
} else {
this.doSendValueEvent=true;
}
var t = _root.createEmptyMovieClip('hans2',20);
var myColorTZ = new Color(t);
myColorTZ.setRGB(this.mycolor);
this.setAttribute('mycolorString',this.parent.parent.parent.numberToRGB(myColorTZ));
listener.changeColor(this.mycolor);
listener.close();
listener.changeColor(this.mycolor);
listener.close();
lz.ModeManager.release(this);
this.btnRef.closedColorPicker();
this.btnRef.setAttribute('selectedColor', this.selectedColor);
this.btnRef.setTransformedStringColor();
> 16) & 0xff;
var g = (c >> 8) & 0xff;
var b = c & 0xff;
////Debug.write("r g b: ",r,g,b);
var hsl = RGBtoHLS(r,g,b);
////Debug.write("doDefaultColor ",hsl);
this.updateSlidersByValue(hsl);
var rgb = HLStoRGB(s_hue.value, s_bri.value, s_sat.value);
var c = rgb.r << 16 | rgb.g << 8 | rgb.b
this.setAttribute('selectedColor', c);
]]>
> 16) & 0xff;
var g = (c >> 8) & 0xff;
var b = c & 0xff;
var hsl = RGBtoHLS(r,g,b);
this.updateSlidersByValue(hsl);
]]>
s_hue.doSendValueEvent=false;
s_hue.setValue(hsl.h);
s_bri.doSendValueEvent=false;
s_bri.setValue(hsl.l);
s_sat.doSendValueEvent=false;
s_sat.setValue(hsl.s);
> 16) & 0xff;
var g = (c >> 8) & 0xff;
var b = c & 0xff;
////Debug.write("r g b: ",r,g,b);
HEX_R = r.toString(16).toUpperCase();
HEX_G = g.toString(16).toUpperCase();
HEX_B = b.toString(16).toUpperCase();
if (HEX_R.length < 2) {
HEX_R = "0"+HEX_R;
}
if (HEX_G.length < 2) {
HEX_G = "0"+HEX_G;
}
if (HEX_B.length < 2) {
HEX_B = "0"+HEX_B;
}
var hex = "0x"+HEX_R + HEX_G + HEX_B;
return hex;
]]>
1) temp3--;
if(temp3*6 < 1) temp4 = temp1+(temp2-temp1)*6*temp3;
else if(temp3*2 < 1) temp4 = temp2;
else if(temp3*3 < 2) temp4 = temp1+(temp2-temp1)*((2/3)-temp3)*6;
else temp4 = temp1;
switch(i) {
case 0: r = Math.round(temp4*255); break;
case 1: g = Math.round(temp4*255); break;
case 2: b = Math.round(temp4*255); break;
}
}
}
return {r:r, g:g, b:b};
]]>