Flash Player 7
Method. Clears the legend.
myLegend.clearLegend();
Flash Player 7
Method. Sets the size of the component. The first parameter is the width, the second is the height.
myLegend.setSize(200, 180);
Flash Player 7
Method. Sets the data source of the component. It accepts one parameter, the source of the legend. The source may be the url of an external xml file or a reference to an XML object.
myLegend.setSource("chart.xml");
Flash Player 7
Boolean, write-only. Determines whether the legend will fade in (true) or not (false).
myLegend.Fade = true;
Flash Player 7
String, write-only. Sets the font to be used for text.
myLegend.Font = "myFont";
Flash Player 7
Number, write-only. Sets the color of the caption text.
myLegend.FontColor = 0x000000;
Flash Player 7
Number, write-only. Sets the font size of the caption text.
myLegend.FontSize = 12;