Gradient transform tool - ActionScript

Is it possible to access a shape(rectangle) inside a movie clip and modify its gradient fill properties?
I’m mostly interested in modifying the ‘ratios’ property that defines where one color begins and the other ends.