0

I want to add more colors as in the basic Adobe Animate Color Picker component color palet (see picture), but I dont't know how. Currently I only have this code:

Re-imagined new color picker:

This is my code:

import fl.events.ColorPickerEvent;
import flash.geom.ColorTransform;
import fl.controls.ColorPicker;

mpicker.selectedColor=0x000000;
var mcolor:ColorTransform=new ColorTransform();
mpicker.addEventListener(ColorPickerEvent.CHANGE,ccolor)
function ccolor(e:ColorPickerEvent)
{
    mcolor.color=mpicker.selectedColor;
    box.transform.colorTransform=mcolor;
} 

Would be nice if someone could help me. Thanks

VC.One
  • 14,790
  • 4
  • 25
  • 57
  • Maybe this? https://code.tutsplus.com/tutorials/create-a-custom-color-picker-in-flash--active-2378 – Organis May 31 '21 at 23:26
  • PS: You can try setting the `columnCount` (number of down-lines) by using `mpicker.setStyle("columnCount", 18); `. The default value is 18 (count 'em) and change **18** for whatever you need. – VC.One Jun 02 '21 at 18:11

0 Answers0