myphoto = new flash.display.BitmapData(Stage.width, Stage.height);
myphoto .draw(_root);
mc1.onRelease = function() {
var onColor:String = myphoto .getPixel(_root._xmouse, _root._ymouse).toString(16).toUpperCase();
trace(onColor)
};
var selectedColor;
function CreatecolorTable(colorSelector, onClickOK){
colorSelector.style.;
colorSelector.style.cursor="hand";
var oTable=document.createElement("table");
oTable.style.cursor="hand";
with(oTable){border=0;cellspacing=0;cellpadding=0;}
colorSelector.appendChild(oTable);
var colorRes=document.createElement("div");
colorRes.id="colorRes";
var btnOK=document.createElement("button");
btnOK.style.;
btnOK.innerText="OK";
btnOK.onclick=function(){
resColor=selectedColor;
colorSelector.selectedColor=selectedColor;
colorSelector.blur();
colorSelector.style.display="none";
};
colorRes.appendChild(btnOK);
var btnCancel=document.createElement("button");
btnCancel.style.;
btnCancel.innerText="Cancel";
btnCancel.onclick=function(){
resColor=null;
colorSelector.selectedColor=selectedColor;
colorSelector.blur();
colorSelector.style.display="none";
};
colorRes.appendChild(btnCancel);
colorSelector.appendChild(colorRes);
// Create the base colors array.
var aColors = ['00','33','66','99','cc','ff'] ;
// This function combines two ranges of three values from the color array into a row.
function AppendColorRow(rangeA, rangeB){
for(var i=rangeA;i
for(var j=rangeB;j
AppendColorCell(oRow, '#'+aColors[j]+aColors[n]+aColors[i]);
}
}
}
}
// This function create a single color cell in the color table.
function AppendColorCell(targetRow, color){
var oCell=targetRow.insertCell(-1);
oCell.style.;oCell.style.;
oCell.bgColor=color;
oCell.onfocus=function(){
this.style.;
this.style.;
this.style.border="1px solid #ff0000";
}
oCell.onblur=function(){
this.style.border="0px";
this.style.;
this.style.;
}
oCell.onclick=function(){
selectedColor=this.bgColor;
}
}
AppendColorRow(0, 0);
AppendColorRow(3, 0);
AppendColorRow(0, 3);
AppendColorRow(3, 3);
// Create the last row.
var oRow=oTable.insertRow(-1);
// Create the gray scale colors cells.
for(var n=0;n<256;n+=15){
var cc=n.toString(16);
cc=(cc.length==2?cc:"0"+cc);
AppendColorCell(oRow, '#'+cc+cc+cc);
}
}
function colorMinus(color){
var r=(255-parseInt("0x"+color.substr(1,2))).toString(16);
r=(r.length==1?"0"+r:r);
var g=(255-parseInt("0x"+color.substr(3,2))).toString(16);
g=(g.length==1?"0"+g:g);
var b=(255-parseInt("0x"+color.substr(5,2))).toString(16);
b=(b.length==1?"0"+b:b);
return "#"+r+g+b;
}
敢达决战官方正版 安卓版v6.7.9
下载敢达决战 安卓版v6.7.9
下载像素火影骨架佐助 (Perseverance Fire Shadow)手机版v1.16
下载要塞英雄 安卓版v33.20.0-39082670-Android
下载梦想城镇vivo最新版本 安卓版v12.0.1
梦想城镇vivo版是这款卡通风模拟经营类手游的渠道服版本,玩
怦然心动的瞬间 安卓版v1.0
怦然心动的瞬间是一款真人向的恋爱互动游戏,在游戏中玩家将扮演
曼尼汉堡店游戏 安卓版v1.0.3
曼尼汉堡店是一款非常好玩的精品恐怖类型冒险游戏,在这款游戏中
现代总统模拟器去广告版 安卓版v1.0.46
现代总统模拟器是一款休闲养成类游戏,可能对于不少的玩家来说都
现代总统模拟器付费完整版 安卓版v1.0.46
现代总统模拟器高级版在商店是需要付费的,相对于普通版本,高级