swftext->setspacing
<<<
swftext swftextfield->addstring
>>>

7.58 Ming pour Flash
7 Index des fonctions
 Manuel PHP

. Introduction
. Pré-requis
. Installation
. Configuration à l'exécution
. Types de ressources
. Constantes prédefinies
. Classes prédefinies
. ming_setcubicthreshold
. ming_setscale
. ming_useswfversion
. swfaction
. swfbitmap->getheight
. swfbitmap->getwidth
. swfbitmap
. swfbutton_keypress
. swfbutton->addaction
. swfbutton->addshape
. swfbutton->setaction
. swfbutton->setdown
. swfbutton->sethit
. swfbutton->setover
. swfbutton->setup
. swfbutton
. swfdisplayitem->addcolor
. swfdisplayitem->move
. swfdisplayitem->moveto
. swfdisplayitem->multcolor
. swfdisplayitem->remove
. swfdisplayitem->rotate
. swfdisplayitem->rotateto
. swfdisplayitem->scale
. swfdisplayitem->scaleto
. swfdisplayitem->setdepth
. swfdisplayitem->setname
. swfdisplayitem->setratio
. swfdisplayitem->skewx
. swfdisplayitem->skewxto
. swfdisplayitem->skewy
. swfdisplayitem->skewyto
. swfdisplayitem
. swffill->moveto
. swffill->rotateto
. swffill->scaleto
. swffill->skewxto
. swffill->skewyto
. swffill
. swffont->getwidth
. swffont
. swfgradient->addentry
. swfgradient
. swfmorph->getshape1
. swfmorph->getshape2
. swfmorph
. swfmovie->add
. swfmovie->nextframe
. swfmovie->output
. swfmovie->remove
. swfmovie->save
. swfmovie->setbackground
. swfmovie->setdimension
. swfmovie->setframes
. swfmovie->setrate
. swfmovie->streammp3
. swfmovie
. swfshape->addfill
. swfshape->drawcurve
. swfshape->drawcurveto
. swfshape->drawline
. swfshape->drawlineto
. swfshape->movepen
. swfshape->movepento
. swfshape->setleftfill
. swfshape->setline
. swfshape->setrightfill
. swfshape
. swfsprite->add
. swfsprite->nextframe
. swfsprite->remove
. swfsprite->setframes
. swfsprite
. swftext->addstring
. swftext->getwidth
. swftext->moveto
. swftext->setcolor
. swftext->setfont
. swftext->setheight
. swftext->setspacing
->swftext
. swftextfield->addstring
. swftextfield->align
. swftextfield->setbounds
. swftextfield->setcolor
. swftextfield->setfont
. swftextfield->setheight
. swftextfield->setindentation
. swftextfield->setleftmargin
. swftextfield->setlinespacing
. swftextfield->setmargins
. swftextfield->setname
. swftextfield->setrightmargin
. swftextfield

7.58.88 swftext()Crée un nouvel objet texte

[ Exemples avec swftext ]   PHP 4 >= 4.0.5

new  swftext ( void )
Attention

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.

swftext crée un nouvel objet texte, prêt à être manipulé.

SWFText a les méthodes suivantes : swftext->setfont , swftext->setheight , swftext->setspacing , swftext->setcolor , swftext->moveto , swftext->addstring et swftext->getwidth .

Cet exemple simple va afficher la phrase "PHP fait du Flash avec Ming" sur un fond blanc.
Exemple avec swftext

<?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 fait du Flash avec Ming!!");
  
$m = new SWFMovie();
  
$m->setDimension(5400, 3600);
  
$m->add($t);
  
header('Content-type: application/x-shockwave-flash');
  
$m->output();
?>

<< swftext >>
swftext->setspacing Ming pour Flash swftextfield->addstring