Customizing the StockTicker component

The StockTicker component can be customized through the use of properties, methods, and styles. Attributes of the StockTicker component that be can modified are the scroll speed, direction, quote symbols and font properties. Changing the the font and text format can be done through the standard flash styles mechanism or throught the short-cut properties in the Property Inspector.

Related topics

Using styles with the StockTicker component

You can set style properties to change the appearance of a StockTicker instance. Currently, the only styles supported are related to text format and control color. Changing the text format styles affect all of the text in the ticker's display- however the color of positive and negative change info is always green and red if the showChangeColors property is true. This can be changed with the changeFormat property. Also, by setting the quoteDisplay property, it is possible to supply a movie clip that acts as a template for displaying text for different stock quote information. (See quoteDisplay for more info).

A StockTicker component supports the following styles:

Style Description
color The text color. The default value is 0x0B333C for the Halo theme and blank for the Sample theme.
embedFonts A Boolean value that indicates whether the font specified in fontFamily refers to an embedded font. Otherwise, the embedded font will not be used. If this style is set to true and fontFamily does not refer to an embedded font, no text will be displayed. The default value is false.
fontFamily The font name for the text. The default value is "Arial".
fontSize The point size for the font. The default value is 12.
fontStyle The font style: either "normal" or "italic". The default value is "normal".
fontWeight The font weight: either "none" or "bold". The default value is "none". All components can also accept the value "normal" in place of "none" during a setStyle() call, but subsequent calls to getStyle() will return "none".
textDecoration The text decoration: either "none" or "underline". The default value is "none".