RSS
magnify
Home General Set line leading / line spacing in flash actionscript 2
formats

Set line leading / line spacing in flash actionscript 2

Published on April 16, 2010 by in General

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.

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments 
© Copyright © 2012 · Web Development London UK · All rights reserved · Site hosted on the hsmoore.com network
By using the site and/or making use of any of our services you agree to our Terms and Conditions