Description

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

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.

Back to Intermediate Tutorials              Back to Flash and Math Home

We welcome your comments, suggestions, and contributions. Click the Contact Us link below and email one of us.

Adobe®, Flash®, ActionScript®, Flex® are registered trademarks of Adobe Systems Incorporated.