Example:
4 3 1
6 8 9
2 5 3
Above is a 3x3 matrix storing 9 numbers.
In ActionScripting, Flash uses matrices as part of the transformation matrix, which can be either a 3x3 matrix in which values are taken from an array in the format:
a b c
d e f
g h i
and read in the order:
matrix = { a:20, b:30, c:40, d:50, e:60, f:70, g:80, h:90, i:100 };
Or the matrix can be defined as a matrix type:
matrix = { matrixType:"box", x:300, y:300, w:100, h:250, r:(90/180)*Math.PI };
in which the values, instead of being taken from a 3x3 storage array, are instead assigned to preset values for that type. For instance, a box type matrix needs an x and y coordinate, a width and height, and in this case a radius (when being used for a gradient fill).
Transformation matrices are used most often in the begingradientfill function.

