At this point, really? You have all you need to make the gradient itself work. You have a place to input the color values, and another for the alpha and the angle. All of that passes to the script that creates the gradient, so even without these last two steps it would work. All these last two steps do is tie in the color swatches so that you can change their color to match the current active color from the main palette while reflecting that into the hex code displayed in the input text box for that gradient color...or change the color swatch to match the color input in the corresponding text box.
Each of the color swatches will need code similar to this:
on (press) {
_root.base.gc1=_root.base.hexcolor;
}
This takes the hexadecimal color value from the main color swatch and assigns it to the variable for the input text box controlling the color of the corresponding gradient color swatch.