Here a slider is used to dynamically draw two circles, one empty and the other filled (which basically gives you a pie chart). Each circle is drawn using a series of curveTo statements; enough needed to produce the segment of the circle being drawn.
Source
https://www.senocular.com/flash/source/?entry=621
Dynamically Drawn Circle and Pie Shape Screenshots