Support Center - LineChart Component for Flash

Installation

When you download the LineChart_vvv.mxp file (where vvv is the version number), save the file to an easy-to-find location. Next, launch Flash and select Help > Manage Extensions to launch the Extension Manager. Click the Install button, browse to the MXP file you downloaded and saved, then click OK and allow the installation to complete. Restart Flash, and the extension will be ready to use.

Basic Usage

To use the component, you must be using an Actionscript 2.0 document and publish to Flash Player 7 or higher. The component is not compatible with AS 3.0 projects.

Next, switch to the movieclip where you want to display a chart (this could be the main stage). Open the Actions panel (Window > Actions), and add actionscript to initialize an instance of the component. The following example code creates the example chart shown on the main product page:

Copy the (Flash Configuration Folder)/Classes/com/dwuser/charting/LineChart.as file in to the newly created directory. (If you can't locate the file, try runing a search for LineChart.as and include hidden/system folders).

In Flash, open Edit > Preferences... (Flash > Preferences... on Mac), Actionscript Tab, Actionscript 2.0 Settings..., Classpath section. Make sure that the "." is the very first item.

Open the new copy of LineChart.as. Make modifications as desired.

Save and re-export your FLA file

Resetting Chart Data

If your application has trouble with chart data persisting even after trying to remove a chart, try using the following code: