myphoto = new .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
}
}
}
}
// 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
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;
}
模拟极限越野
模拟极限越野开着大巴在各种奇葩路况里送乘客。山路弯道多得让人
模拟火车
模拟火车让你当回真正的火车司机,得先学会看信号灯、操作控制杆
可口的披萨美味的披萨
可口的披萨美味的披萨带您体验经营一家披萨店的乐趣。游戏画风温
定制虚拟偶像最新版
定制虚拟偶像最新版是一款超级经典有趣的日本模拟装扮类型的手游
病娇模拟器手机版正版(yandere simulator)
病娇模拟器最新版手游是一款萌妹二次元模拟游戏,玩家在游戏中可