note 37880 modified in function.swftext by danbrown
| From: | danbrown@php.net | Date: | Fri, 26 Sep 2008 15:44:22 +0000 |
| Subject: | note 37880 modified in function.swftext by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-144792@lists.php.net to get a copy of this message | ||
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).
--was--
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:
$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).
http://php.net/manual/en/function.swftext.php