1 // makeswf -v 7 -s 200x150 -r 1 -o text-field-align.swf text-field-align.as
3 function create
(depth
, align
) {
4 var x
= int (depth
/ 4);
6 createTextField
("t" + depth
, depth
, 100 * x
, y
* 30, 90, 25);
7 var t
= this["t" + depth
];
8 var tf
= new TextFormat ();
9 tf
.font
= "Bitstream Vera Sans";
11 t
.setNewTextFormat
(tf
);
13 t
.text
= "Hello World";
21 create
(3, "justify");
23 t
= create
(4, "left");
25 t
= create
(5, "right");
27 t
= create
(6, "center");
29 t
= create
(7, "justify");