#12002/12/6 10:49:03
关于FLASH MX里自带的源文件Color_picker中的代码问题
我做了有一点注释 但有个地方我实在想不清楚 还请斑竹以及其他高手援助!!在线等待 急!!请看代码中的波浪线处
carColor = new Color(car);
color1 = new Color(previewbox);//颜色欲览里面的控制颜色的函数
color2 = new Color(chip.chipfill);
//
this.onEnterFrame = function() {
// set c1, c2, c3, hc1, hc2, and hc3 equal to the positions of their respective faders and vice versa
for (i=1; i<=3; i++) {
this["color"+i].setRGB(rgb);
this["hexc"+i+"Text"].onKillFocus = function() {
hexMode = false;
};
this["hexc"+i+"Text"].onSetFocus = function() {
hexMode = true;
};//实现文本输入的键盘调用;
fader = this["fader"+i].knob;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~就是这句了!!!那个“knob”拿来做什么用的 又用在哪里 怎么用?它是哪里出来的?是函数?是属性?
if (dragging) {
this["c"+i] = fader._y;
this["hc"+i] = this["c"+i].toString(16);
}