In this applet, we show how to draw graphs of pre-defined (as opposed to user-defined) functions and animate them with ENTER_FRAME event. In particular we create a family of sine functions, Asin(Bx-C). The user can dynamically change the constants and see the changes in the graph.
Click on the screen shot below to open one of the applets of this tutorial in the new window:
Download all source files corresponding to this tutorial in the following compressed folder.
The zip package contains a well-commented source file.
For graphing user defined functions see our tutorial Simple Function Grapher in AS3.