Flash Player 7
Function. Called when the user clicks on an item in the chart.
myChart.onClick = function( stack, title, value, color )
{
trace( "STACK: " + stack + ", TITLE: " + title + ", VALUE: " + value + ", COLOR: " + color );
}
Flash Player 7
Function. Called when the cursor leaves an area of the chart.
myChart.onMouseOut = function( stack, title, value, color )
{
trace( "STACK: " + stack + ", TITLE: " + title + ", VALUE: " + value + ", COLOR: " + color );
}
Flash Player 7
Function. Called when the cursor moves over an area of the chart.
myChart.onMouseOver = function( stack, title, value, color )
{
trace( "STACK: " + stack + ", TITLE: " + title + ", VALUE: " + value + ", COLOR: " + color );
}
Flash Player 7
Method. Removes all chart items.
myChart.clearChart();
Flash Player 7
Method. Used to pront the chart and the legend description.
myChart.print();
Flash Player 7
Method. Prints just the chart.
myChart.printChart()
Flash Player 7
Method. Prints the chart legend description.
myChart.printLegend();
Flash Player 7
Method. Sets the size of the component. The first parameter is the width, the second is the height.
myChart.setSize(200, 180);
Flash Player 7
Method. Sets the data source of the component. It accepts one parameter, the source of the chart. The source may be the url of an external xml file or a reference to an XML object.
myChart.setSource("chart.xml");
Flash Player 7
String, write-only. Used to set the alignment of the captions.
myChart.Align = "left";
Flash Player 7
Number, write-only. Sets the background caption color.
myChart.BGColor = 0x999999;
Flash Player 7
Number, write-only. Sets the caption border color.
myChart.BRDColor = 0x000000;
Flash Player 7
String, write-only. Used to set the caption mode.
myChart.CaptVal = "value";
Flash Player 7
Boolean, write-only. Used to enable (true) or disable (false) captions.
myChart.EnableCapt = true;
Flash Player 7
Number, write-only. Sets the number percent decimals in the caption.
myChart.EnableDes = 2;
Flash Player 7
Boolean, write-only. Enables (true) or disables (false) titles.
myChart.EnableTitle = true;
Flash Player 7
Boolean, write-only. Determines whether the chart will fade in (true) or not (false).
myChart.Fade = true;
Flash Player 7
String, write-only. Sets the font to be used for text.
myChart.Font = "myFont";
Flash Player 7
Number, write-only. Sets the color of the caption text.
myChart.FontColor = 0x000000;
Flash Player 7
Number, write-only. Sets the font size of the caption text.
myChart.FontSize = 12;
Flash Player 7
Number, write-only. Sets the grid color.
myChart.GRColor = 0x336699;
Flash Player 7
String, write-only. Specifies the instance name of the BJCChartLegend component to display the chart's legend.
myChart.Legend = "myLegend";
Flash Player 7
Number, write-only. Sets the number of grid lines.
myChart.Lines = 3;
Flash Player 7
Number, write-only. Sets the color of the text when printed.
myChart.PTColor = 0x000000;
Flash Player 7
String, write-only. Specifies the XML data source.
myChart.source = "chart.xml";
Flash Player 7
Number, write-only. Sets the color of the titles.
myChart.TitleColor = 0x333333;