root/test/TextField/test01.php

/* [<][>][^][v][top][bottom][index][help] */
#!/usr/bin/php -c.

<?php

$srcdir = $argv[1];
$mediadir = $srcdir . "/../Media";

$m = new SWFMovie();

$f = new SWFFont($mediadir . "/test.ttf");

$tf = new SWFTextField();
$tf->setFont($f);
$tf->setColor(0x0, 0x00, 0x00, 0xff);
$tf->setHeight(20);
$tf->setFlags(SWFTEXTFIELD_NOEDIT);
$tf->addString("The quick brown fox jumps over the lazy dog. 1234567890");

$m->add($tf);
$m->nextFrame(); /* end of frame 1 */
$m->save("test01.swf");
?>

/* [<][>][^][v][top][bottom][index][help] */