Update 6.VII.2009:
  • Remove small error in classes
  • I enclosed the example of the use two component “color pixel” at the scene


Color Pixel Components (Action Script 2.0) :

Code AS in FLA:

///change Color Background/////
function setColorBackground(color_:Number) {
var k:Color = new Color(mcBackground);
k.setRGB(color_);
}

///////change Color in ColorPixel/
function onChangedColor() {
var color = colorPixel.getColor();
trace(“change Color = “+color)
setColorBackground(color);
}

//////////add events colorPixel
colorPixel.addEventListener(“onChangedColor”,this);
colorPixel.setColor(0×486F82); ////first Color
////////////////////


Included files:

  • Documentation (.txt)
  • Flash 8 file
  • SWF file
  • AS file (classes action script 2.0)


The component isn’t being installed. He is in library in the file fla.

keywords: color picker,color pixel

by
by
by
by
by
by