No book on ActionScript graphing would be complete without at least mentioning Flex. The Flex software development kit also contains an extensive API for drawing different types of graphs.
The techniques we've discussed in the previous recipes are much more powerful, but depending on the case, a small Flex component might be enough.
Since we need access to the Flex library, we'll need to set up our FlashDevelop workspace differently. The easiest way is to create a new project. When asked for the type of project, pick Flex 3 project (instead of AS3 Project, which we use throughout the other parts of this book).
If you browse through the files in the
src directory of your project, you will now find a
Main.mxml file ...