(PHP 5 <= 5.3.0, PECL ming SVN)
Creates a new SWFText object
SWFText::__construct ( void )
Creates a new SWFText object, fresh for manipulating.
This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk.
Examples:
swftext() example
This simple example will draw a big yellow "PHP generates Flash with Ming" text, on white background.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | <?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(); ?> |
Please login to continue.