Getting cubic bezier drawing API’s to work in my projects
There are several examples of drawing methods that draw a cubic bezier line that can be changed interactively by moving two control points and two anchor points, which is exactly what I needed for a project. An example of one is HERE. This one is by Robert Penner, from his book: Robert Penner’s Programming Macromedia Flash MX”
I couldn’t figure out why I could not get these functions to work in my own pieces, even when I exactly duplicated the structure of his flash movie. They would work in his, but not in mine.
The first frame of the movie has two “include” references in it, to two actionscript files containing all the common functions for his drawing methods.
Continue reading
#include "drawing_api_core_extensions.as"
#include "bezier_draw_cubic.as"