©
이 문서에서는 PHP 중국어 웹사이트 매뉴얼 풀어 주다
(PHP 5 <= 5.3.0, PECL ming SVN)
SWFText.
$string
)$text
)$string
)$string
)$x
, float $y
)$red
, int $green
, int $blue
[, int $a
= 255
] )$font
)$height
)$spacing
)[#1] p_smiecho at interia dot pl [2003-12-01 03:26:31]
It seems to me that there is a bug: everything works perfect but only with Linux. SWFText crashes while working on Windows. So I do it that way:
<?php
$f = new SWFFont('Arial');
$t = new SWFTextField();
$t -> setFont($f);
$t -> addString('Hello world!!!');
$p = new SWFSprite();
$i = $p -> add($t);
$i -> moveto(100, 100); // Here you can move text !!
//$p -> remove($i);
$m = new SWFMovie();
// ...
$m -> add($p);
?>
Of course it writes text where I want, but I still can't get other methods of SWFText class. For example: I can't get text width (swftext->getwidth).
[#2] franky at boucheros dot com [2002-04-22 06:12:26]
For windows platform :
<?php
$f=new SWFFont("_sans");
$t=new SWFTextField();
?>
and comment the moveto line.