The Gemini Observatory has a great video of how an adaptive optics system works within a telescope: http://www.gemini.edu/videos/pio/ao-animation.mov
The drawing of this adaptive optics system is based on a drawing by figure Professor Claire Max Astronomy and Astrophysics, UC Santa Cruz.