_root.layer.colors = [color1,color2];
_root.layer.alphas = [tsalpha1,tsalpha2];
_root.layer.ratios = [25,225];
This part is actually quite simple, if you look at the glossary definition of what an array is: just a list of values. Weve already created variables to hold numeric values for the two gradient colors and alpha values; creating arrays in this format just makes containers for those lists of values. My arrays are named colors, alphas, and ratios, and are used in the beginGradientFill() function shown in the previous step. This is just an easy way to give the function the values it needs to draw the gradient rectangle, in the correct order and format.


