Note. Flash Player 11 includes its own method for drawing cubic curves, cube Tour () , which should be the fastest method if you are targeting FP11.
Last week, I wrote a class to draw arbitrary Bezier curves.
The code is not optimized, but works great in my tests. Performance is an acceptable event for animation (although I donβt think itβs a good idea to abuse it, because, as I said, it is not optimized, it makes no sense to use them for quadratic curves, of course, since the player can do it initially).
The code is here if you want to use it or have a look:
BezierCurve Class
Code example
I think that with the sample code you can figure out how to use it without problems (it is quite straightforward and somewhat commented on); but if you have problems ask!
Feel free to use it as you wish.
source share