(PHP 5 <= 5.3.0, PECL ming SVN)
SWFText->__construct — Creates a new SWFText object
此函数是实验性的。 此函数的表象,包括名称及其相关文档都可能在未来的 PHP 发布版本中未通知就被修改。使用本扩展风险自担 。
Creates a new SWFText object, fresh for manipulating.
This simple example will draw a big yellow "PHP generates Flash with Ming" text, on white background.
Example #1 swftext() example
<?php
$f = new SWFFont("Techno.fdb");
$t = new SWFText();
$t->setFont($f);
$t->moveTo(200, 2400);
$t->setColor(0xff, 0xff, 0);
$t->setHeight(1200);
$t->addString("PHP generates Flash with Ming!!");
$m = new SWFMovie();
$m->setDimension(5400, 3600);
$m->add($t);
header('Content-type: application/x-shockwave-flash');
$m->output();
?>