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);
Code language: JavaScript (javascript)

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.

Notify of
Inline Feedbacks
View all comments