title: ColorPicker in AS3
body: <pre><code>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);
  }
  </code></pre>
  
  <p>I need the value of <code>event.target.hexValue</code> outside of the function. I'm using actions in Flash CS5.</p>