Changing a Color in ActionScript

Get Adobe Flash player

The code is shown below:

colorPicker.addEventListener(Event.CHANGE,pickColor);
function pickColor(e:Event):void {
   var colorT:ColorTransform = new ColorTransform();
   colorT.color = colorPicker.selectedColor; //color user selected
   flower.colorArea.transform.colorTransform = colorT; //change the color of the box
} //changeColor
Download movie

NEXT: A Random Color