if (this.selectedColorDis==-1){ this._currentcolor.setAttribute('clickable',false); this._currentcolor.setAttribute('opacity',0.3); this.rgt.setAttribute('opacity',0.3); this.rgt.setAttribute('enabled',false); this.colorIsEnabled = false; } this.setTransformedStringColor(); this.setEnabled(true); this.setAttribute('selectedColor',c); this.setTransformedStringColor(); this.setEnabled(true); this.setAttribute('selectedColor',c); this.setTransformedStringColor(); this.selectedColorDis = d; if (this.selectedColorDis==-1){ if ($debug) Debug.write("FillColor Disabled"); this._currentcolor.setAttribute('clickable',false); this._currentcolor.setAttribute('opacity',0.3); this.rgt.setAttribute('opacity',0.3); this.rgt.setAttribute('enabled',false); this.colorIsEnabled = false; this.rgt_b._lock.setAttribute("visibility","visible"); this.rgt_b._lock_open.setAttribute("visibility","hidden"); } else { this._currentcolor.setAttribute('clickable',true); this._currentcolor.setAttribute('opacity',1); this.rgt.setAttribute('opacity',1); this.rgt.setAttribute('enabled',true); this.onselectedColor.sendEvent(this.selectedColor); this.colorIsEnabled = true; this.rgt_b._lock.setAttribute("visibility","hidden"); this.rgt_b._lock_open.setAttribute("visibility","visible"); } return this.selectedColor; var t = _root.createEmptyMovieClip('hans',10); var myColor = new Color(t); myColor.setRGB(selectedColor); if (this.boxPosition=="up"){ this.colorPickRef = new lz.colorpicker(canvas,{btnRef:this, x:(this.getAttributeRelative('x',canvas)-(250-this.width)), y:(this.getAttributeRelative('y',canvas)-154+this.height)}); } else { this.colorPickRef = new lz.colorpicker(canvas,{btnRef:this, x:(this.getAttributeRelative('x',canvas)-(250-this.width)), y:(this.getAttributeRelative('y',canvas))}); } this.colorPickRef.doDefaultColor(myColor); lz.ModeManager.makeModal( this.colorPickRef ); ////Debug.write("setTransformedStringColor: ",this,this.selectedColor); var t = _root.createEmptyMovieClip('hans2',20); var myColor = new Color(t); myColor.setRGB(this.selectedColor); //var a = myColor.getTransform(); ////Debug.write("a: ",a); var col = this.numberToRGB(myColor); ////Debug.write("col: ",col); this.setAttribute('selectedColorTransformedString',col); > 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; ]]> lz.ModeManager.release( this.colorPickRef );