Set line leading / line spacing in flash actionscript 2

This is how to add text leading using Actionscript 2 for Flash.

var txtFormat:TextFormat = new TextFormat();
txtFormat.leading = 5; // change this to whatever you need it to be
ttt.setTextFormat(txtFormat);
ttt2.setTextFormat(txtFormat);</span>

There is also a GUI way of doing this:

Select your textfield and and under the paragraph section, set the top/right hand icon (Line Spacing) to whatever you like.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Latest Sites on SiteInfo

1. downingmedia.com
(17 hours ago)
2. outsourcedataworks.com
(1 day ago)
3. vodafone.co.za
(1 day ago)
4. remont-yug.com
(2 days ago)
5. njbanjiawang.com
(3 days ago)
6. giochi.com
(3 days ago)
7. briket-makinasi.blogspot.com
(3 days ago)
8. beijinghuisuo.com
(4 days ago)
9. joufp.com
(4 days ago)
10. justgoodlinks.com
(6 days ago)