3 Replies Latest reply on Mar 16, 2007 3:50 AM by ggshow

    Letter Spacing For Dynamic Text

      Hi All,

      Im having a problem with setting the letter spacing for a dynamic text box that exists on my timeline.

      I have a string which is telling the dynamic text box what words to put into it.

      What I want to do is set the letter spacing to 5. I have tried the following code from the help manual: -

      var format1:TextFormat = new TextFormat();
      format1.letterSpacing = 5;

      What this does is sets the leading to 5 for any text I physically write into the box, and then preview. For any text that I dynamically load using a string and preview..... the leading is 0?

      Any ideas? Help is thanked in advanced