0 Replies Latest reply on Oct 9, 2010 3:25 PM by smohadjer

    CSS leading not working properly in AS3 (FlexSDK)

    smohadjer Level 1

      I am using an external css file to style a textField in a .as file compiled with FlexSDK. My CSS looks like this:

       

      .test {
        font-family: Whitney Book;
        font-size: 28px;
        leading: 24px;   
      }

       

      But when I open the swf in browser I see that leading is not applied to first line of text. You can see how it looks here:

      http://www.saeidmohadjer.com/users/saeid/sandbox/flash_external_css/test.html

       

      Any idea why leading applies to all lines except the first line?

       

      On a side note if I set leading to a negative value the last line of text disappears! It seems CSS leading implementation in FlexSDK is buggy.

       

      Thanks

      Saeid