createGradientBox(): explanation?

I tried to understand this function from the flash help but didnt really get a hang of it.

I want to know how exactly the matrix forms and affects the gradient fill. Any help? ANy useful link? some tutorial may be?