I have a dynamic TextField with very wide letter spacing in my .fla. However, whenever I change the text in the TextField using actionscript, the letter spacing resets. Is there a way to keep that from happening? And why does it happen in the first place? Thank you so much for all your help,
a lot of the properties of TextField, like color and size, font, width, height, etc will 'stick' to your dynamically changed text.
other properties like letterSpacing won't, as you found out, and are best declared using TextFormat.
for a dynamic text field on the stage with the instance name of 'text1', and a desired spacing og '56'
you can declare it like this: var newTextFormat:TextFormat = new TextFormat();
newTextFormat.letterSpacing = 56;
text1.defaultTextFormat = newTextFormat;
which will assign ( and hold) that format through all your dynamic changes.