PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

SWFText->getAscent()> <SWFText->addUTF8String()
Last updated: Fri, 29 Aug 2008

view this page in

SWFText->__construct()

(No version information available, might be only in CVS)

SWFText->__construct()Crée un nouvel objet SWFText

Description

SWFText
void __construct ( void )
Avertissement

Cette fonction est EXPERIMENTALE. Cela signifie que le comportement de cette fonction, son nom et, concrètement, TOUT ce qui est documenté ici peut changer dans un futur proche, SANS PREAVIS ! Soyez-en conscient, et utilisez cette fonction à vos risques et périls.

Crée un nouvel objet SWFText, prêt pour les manipulation.

Exemples

Cet exemple simple va écrire le gros texte jaune suivant : "PHP génère du flash avec Ming", sur fond blanc.

Exemple #1 Exemple avec swftext()

<?php
$f 
= new SWFFont("Techno.fdb");
$t = new SWFText();
$t->setFont($f);
$t->moveTo(2002400);
$t->setColor(0xff0xff0);
$t->setHeight(1200);
$t->addString("PHP génère du flash avec 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
SWFText->__construct()
There are no user contributed notes for this page.

SWFText->getAscent()> <SWFText->addUTF8String()
Last updated: Fri, 29 Aug 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites