Be a Supporter!

Dynamic line spacing

  • 278 Views
  • 2 Replies
New Topic Respond to this Topic
Arkuni
Arkuni
  • Member since: Mar. 14, 2005
  • Offline.
Forum Stats
Member
Level 20
Blank Slate
Dynamic line spacing Apr. 14th, 2009 @ 04:56 PM Reply

How do I control the line spacing of my Dynamic Text?

textfield.leading = 5; doesn't work on "dragged from the toolbar" Dynamic Texts .

If I set the Line Spacing property on the Dynamic Text, it will reset to default once I change the textfield.text value.

What do I do if I rather not start creating, adding and removing childrens?


Okay, okay... something funny... something funny.... hmmm.... which quote am I most likely to get away with as my own?... I KNOW!!! "I eat my own shit!" - The local homeless

Shinki
Shinki
  • Member since: Feb. 14, 2005
  • Offline.
Forum Stats
Member
Level 10
Blank Slate
Response to Dynamic line spacing Apr. 14th, 2009 @ 05:47 PM Reply

The leading property isn't part of the TextField class, it's part of TextFormat. Keep a TextFormat stored and modify it's leading property, then re-set the text field's TextFormat using setTextFormat() whenever you change it.


SCGMD4 is on the way! @scgmd4
If a picture is worth a thousand words, a game is worth a play.

BBS Signature
Arkuni
Arkuni
  • Member since: Mar. 14, 2005
  • Offline.
Forum Stats
Member
Level 20
Blank Slate
Response to Dynamic line spacing Apr. 14th, 2009 @ 06:13 PM Reply

Thank you so much Shinki :-)


Okay, okay... something funny... something funny.... hmmm.... which quote am I most likely to get away with as my own?... I KNOW!!! "I eat my own shit!" - The local homeless