import fl.controls.ColorPicker;
import fl.events.ColorPickerEvent;
var myColorPicker:ColorPicker = new ColorPicker();
myColorPicker.addEventListener(ColorPickerEvent.CHANGE, changeHandler);
myColorPicker.move(10, 10);
addChild(myColorPicker);
function changeHandler(event:ColorPickerEvent) {
trace("color changed:", event.color, "(#" + event.target.hexValue + ")");
trace(myColorPicker.hexValue);
}
I need the value of event.target.hexValue
outside of the function. I'm using actions in Flash CS5.