PDA

View Full Version : [AS2] Letter spacing in a List component?


papercrate
03-20-2009, 03:45 AM
I have a list component (nav_list) on my stage and am having trouble getting letterSpacing to work on it.

I have new TextFormat variable in the Actionscript as follows:

var fmt:TextFormat = new TextFormat();
fmt.letterSpacing = 2;

Also, I have tried ALL (and many, many variations) of the following to get to get the letter spacing to work but to no avail:

nav_list.setStyle("textFormat", fmt);

nav_list.text.setStyle("textFormat", fmt);

nav_list.textField.setStyle("textFormat", fmt);

nav_list.setStyle("TextFormat", fmt);

nav_list.text.setStyle("TextFormat", fmt);

nav_list.textField.setStyle("TextFormat", fmt);

nav_list.TextFormat = fmt;

nav_list.setRendererStyle("textFormat", fmt);

nav_list.setStyle("disabledTextFormat", new TextFormat());

nav_list.TextFormat.letterSpacing = 2;

nav_list.setTextFormat(fmt);

Please... somebody, anybody, help! I feel like I'm missing something simple. Any clues or comments would be much appreciated.

Oh, I should mention that this TextFormat is working fine on a dynamic text field on the stage, just not the List component.

Thanks in advance.