Search code examples
apache-flexgraphicsflex4mxml

draw a circular arc in MXML Graphics


Is there a simple way to draw a circular arc in MXML graphics that doesn't involve beziers? Or should I create my own component?

thank you !

f


Solution

  • I ended up creating my own mxml graphics component to draw arcs. I override Ellipse Spark primitive and use AS for the arc math - mostly copying this great post, which points to this code.