1 // makeswf -v 7 -s 200x150 -r 1 -o text-field-autoSize.swf text-field-autoSize.as
3 function create
(depth
) {
4 createTextField
("t" + depth
, depth
, 50, depth
* 30, 100, 25);
5 var t
= this["t" + depth
];
6 var tf
= new TextFormat ();
7 tf
.font
= "Bitstream Vera Sans";
8 t
.setNewTextFormat
(tf
);
10 t
.text
= "Hello World";
20 t
.autoSize
= "center";