TextField.StyleSheet.getStyleNames()
Availability
Flash Player 7.
Usage
styleSheet.getStyleNames() : Array
Parameters
None.
Returns
An array.
Description
Method; returns an array that contains the names (as strings) of all of the styles registered in this
style sheet.
Example
This example creates a style sheet object named
and
. It then invokes the style sheet object's
bodyText
results to the array
var my_styleSheet:TextField.StyleSheet = new TextField.StyleSheet();
my_styleSheet.setStyle("heading", {fontsize:'24px'});
my_styleSheet.setStyle("bodyText", {fontsize:'12px'});
var names_array:Array = my_styleSheet.getStyleNames();
trace(names_array.join("\n"));
The following is displayed in the Output panel:
bodyText
heading
See also
TextField.StyleSheet.getStyle()
, and displays the contents of the array in the Output panel.
names_array
that contains two styles,
styleSheet
getStyleNames()
TextField.StyleSheet.getStyleNames()
heading
method, assigns the
863
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?