note 91877 added to function.swftext.construct
| From: | DerHorst at gmail dot com | Date: | Tue, 30 Jun 2009 16:32:53 +0000 |
| Subject: | note 91877 added to function.swftext.construct | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-157704@lists.php.net to get a copy of this message | ||
Note that the statet example does not work (at least in Ming Version 0.3.0).
Another possibility to add a string with ming is to set up a TextField first.
Here a (simple keeped) examplecode, working for copy & paste:
<?php
$m = new SWFMovie();
$m->setDimension(160, 160);
$t = new SWFTextField();
// Set the width and height of the TextField
$t->setBounds(150, 150); // not required, but very usefull for not cut the chars
$t->setFont(new SWFFont("_serif"));
$t->addString('Your string here');
// Example for manipulating the properties of the string:
$t->setHeight(15);
$m->add($t);
header('Content-type: application/x-shockwave-flash');
$m->output();
?>
----
Server IP: 217.160.72.57
Probable Submitter: 85.176.111.211
----
Manual Page -- http://www.php.net/manual/en/function.swftext.construct.php
Edit -- https://master.php.net/note/edit/91877
Del: integrated -- https://master.php.net/note/delete/91877/integrated
Del: useless -- https://master.php.net/note/delete/91877/useless
Del: bad code -- https://master.php.net/note/delete/91877/bad+code
Del: spam -- https://master.php.net/note/delete/91877/spam
Del: non-english -- https://master.php.net/note/delete/91877/non-english
Del: in docs -- https://master.php.net/note/delete/91877/in+docs
Del: other reasons-- https://master.php.net/note/delete/91877
Reject -- https://master.php.net/note/reject/91877
Search -- https://master.php.net/manage/user-notes.php