Extending CSS in Flash

I was writing my own TextFormat Class at work and I noticed this post on Lessrain which seems to get around the problems with you not being able to use the CSS properties like leading, Thomas has written a class to solve this problem, you many not have known but Flash internally converts every CSS class into a text format Object….
well see how Lessrain got round the problem

One Response to “Extending CSS in Flash”

  1. thomaxin Says:

    I had to add a fix to the class to address a well known bug in Flash ignoring negative leadings.
    See livedocs

    You can work around this bug by setting the leading in the TextFormat constructor. See comments in the class code…

Leave a Reply

You must be logged in to post a comment.