A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: Text Formatting (Leading)

  1. #1
    Member
    Join Date
    Jan 2003
    Location
    NY
    Posts
    35

    Text Formatting (Leading)

    Hi,

    I can't seem to be able to set the leading of dynamic text field to a negative leading using the textformat object.... anybody out there with the know how of this? thank you

  2. #2
    Senior Member
    Join Date
    Sep 2000
    Location
    Copenhagen, Denmark
    Posts
    228
    unfortunately this is a known bug in MX. You have to manually format a text field via the property inspector to use negative leading
    The word is, that currently there is no workaround. I got this info from Flash forum at macromedia.com.

    idi

  3. #3
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    I see a FStyleFormat.textAlign property but no leading one!

  4. #4
    Senior Member
    Join Date
    Sep 2000
    Location
    Copenhagen, Denmark
    Posts
    228
    Oh, it's there alright: Textformat object --> Textformat.leading. Isn't FStyleFormat specific to components?

    idi

  5. #5
    Member
    Join Date
    Jan 2003
    Location
    NY
    Posts
    35
    I found a work around on the web, I forgot who it was from otherwise i would give him credit.

    you can set it using HTML formating

    textField.htmlText = "<p align=\"right\"><TEXTFORMAT leading=\"-5\" align=\"right\">"+textbody+&quot ;</TEXTFORMAT>&lt/p>"
    Last edited by kiosk99; 02-18-2003 at 03:42 PM.

  6. #6
    Senior Member
    Join Date
    Sep 2000
    Location
    Copenhagen, Denmark
    Posts
    228
    cool! thanks for sharing that info.

    idi

  7. #7
    Member
    Join Date
    Apr 2002
    Location
    Haarlem, The Netherlands
    Posts
    32
    I was looking for the same thing.. Unfortunatly this work-around does not work when you embed fonts into the textfield
    Bummer, now how am I going to decrease that lineheight value :S

  8. #8
    Member
    Join Date
    Jan 2003
    Location
    NY
    Posts
    35
    it works for me and i am embedding fonts

  9. #9
    Member
    Join Date
    Apr 2002
    Location
    Haarlem, The Netherlands
    Posts
    32
    Now that is weird :S
    Had to solve it some other way: by creating fixed textfields, each with a set of properties.. When I was done, it became clear to me that I should have done this later on during the project anyway, so no harm done

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center