テキストの行間/マージン/インデントを設定するには

サンプル1
//メインタイムラインのフレームアクション
this.leading_fmt = new TextFormat();
this.leading_fmt.leading = 8;
this.indent_fmt = new TextFormat();
this.indent_fmt.indent = 20;
this.blockIndent_fmt = new TextFormat();
this.blockIndent_fmt.blockIndent = 20;
this.input_str = "TextField.indentは行の先頭文字のインデントを設定できます。折り返された行はインデントされません。";
this.firstLine_num = this.input_str.length;
this.input_str += "\n\n" + "TextField.blockIndentはブロック単位のインデントを設定できます。折り返された行の先頭もインデントされます。";
this.secondLine_num = this.input_str.length;
this._txt.text = input_str;
this._txt.setTextFormat(this.leading_fmt);
this._txt.setTextFormat(0, this.firstLine_num, this.indent_fmt);
this._txt.setTextFormat(this.firstLine_num + 2, this.secondLine_num, this.blockIndent_fmt);
--------
サンプル2
//メインタイムラインのフレームアクション
this._txt.text = "\t国語\t数学\t英語";
this._txt.text += "\n1組\t62点\t55点\t69点";
this._txt.text += "\n2組\t61点\t59点\t66点";
this._txt.text += "\n3組\t59点\t60点\t64点";
this._txt.text += "\n4組\t65点\t58点\t64点";
this._fmt = new TextFormat();
this._fmt.tabStops = [60, 140, 220];
this._fmt.leftMargin = 5;
this._txt.setTextFormat(this._fmt);
・サンプルを実行
・サンプルをダウンロード
Action Script逆引きクイックリファレンス 説明などは本書を参考にしてください。