beginGradientFill()

Ok I am trying to use beginGradientFill() but can’t get the hang of it.

All examples I have searched for with google have just copied and pasted the MX help file. And while I haven’t given up on working it out I am hoping someone might have some similar code or link to an example.

This is almost what I am after… It allows you to play with the gradients using sliders. I just want to have a few pre-set colors to click on, no sliders.
http://www.horstkgrafix.de/smax/gradient.html

Here is a picture to explain basicly what I am trying to do.
Any code, links to examples, and it need not be the exact thing I am after, just something to work off is much appreciated.