Change the SWF Quality via buttons

I know that this has to be an easy question to answer, but after searching for it, I can’t seem to find it.

The Question
Does anyone have a link to a tutorial or code example on how to have a “Low, Med, High” button inside of the flash so it can be changed dynamically?