PHP Velho Oeste 2024

SWFText::__construct

(PHP 5 < 5.3.0, PECL ming SVN)

SWFText::__constructCrea un nuevo objeto SWFText

Descripción

SWFText::__construct ( void )
Advertencia

Esta función ha sido declarada EXPERIMENTAL. Su funcionamiento, nombre y la documentación que le acompaña puede cambiar sin previo aviso en futuras versiones de PHP. Utilícela bajo su propia responsabilidad.

Crea un nuevo objeto SWFText, listo para su manipulación.

Ejemplos

Este sencillo ejemplo dibujará un gran texto "¡¡PHP genera Flash con Ming!!" amarillo sobre fondo blanco.

Ejemplo #1 swftext() example

<?php
$f 
= new SWFFont("Techno.fdb");
$t = new SWFText();
$t->setFont($f);
$t->moveTo(2002400);
$t->setColor(0xff0xff0);
$t->setHeight(1200);
$t->addString("¡¡PHP genera Flash con Ming!!");

$m = new SWFMovie();
$m->setDimension(54003600);

$m->add($t);

header('Content-type: application/x-shockwave-flash');
$m->output();
?>

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top