This demo shows how to define a Degrafa quadratic Bezier in MXML without any control points. The control points are graphically created via MXML components. As the graphic markers are dragged, the actual Bezier control points are set via script.
Jason’s cool dashed-line decorator is used in another MXML component to draw the convex hull of the control points.
To use the demo, drag the ‘A’, ‘B’, and ‘C’ control points to alter the quadratic Bezier curve. The MXML components in this demo will be used again in an upcoming discussion on arc length of the quad. Bezier.
Note – I dumped everything in ‘view source’, so focus your attention on the src folder. You will also want to download the Degrafa demo template (I did make some changes to the css file).