SommaireTelecharger la documentationChapitre suivantChapitre precedent  

  .: News :.: Edito :.: Scripts :.: Forum :.: Erreurs :.: Jobs :. 
 
Sommaire

Ming pour Flash

Introduction
Installation
Comment utiliser Ming
SWFMovie
SWFMovie->output
SWFMovie->save
SWFMovie->add
SWFMovie->remove
SWFMovie->setbackground
SWFMovie->setrate
SWFMovie->setdimension
SWFMovie->setframes
SWFMovie->nextframe
SWFMovie->streammp3
SWFDisplayItem
SWFDisplayItem->moveTo
SWFDisplayItem->move
SWFDisplayItem->scaleTo
SWFDisplayItem->scale
SWFDisplayItem->rotateTo
SWFDisplayItem->Rotate
SWFDisplayItem->skewXTo
SWFDisplayItem->skewX
SWFDisplayItem->skewYTo
SWFDisplayItem->skewY
SWFDisplayItem->setDepth
SWFDisplayItem->remove
SWFDisplayItem->setName
SWFDisplayItem->setRatio
SWFDisplayItem->addColor
SWFDisplayItem->multColor
SWFShape
SWFShape->setLine
SWFShape->addFill
SWFShape->setLeftFill
SWFShape->setRightFill
SWFShape->movePenTo
SWFShape->movePen
SWFShape->drawLineTo
SWFShape->drawLine
SWFShape->drawCurveTo
SWFShape->drawCurve
SWFGradient
SWFGradient->addEntry
SWFBitmap
SWFBitmap->getWidth
SWFBitmap->getHeight
SWFFill
SWFFill->moveTo
SWFFill->scaleTo
SWFFill->rotateTo
SWFFill->skewXTo
SWFFill->skewYTo
SWFMorph
SWFMorph->getshape1
SWFMorph->getshape2
SWFText
SWFText->setFont
SWFText->setHeight
SWFText->setSpacing
SWFText->setColor
SWFText->moveTo
SWFText->addString
SWFText->getWidth
SWFFont
swffont->getwidth
SWFTextField
SWFTextField->setFont
SWFTextField->setbounds
SWFTextField->align
SWFTextField->setHeight
SWFTextField->setLeftMargin
SWFTextField->setrightMargin
SWFTextField->setMargins
SWFTextField->setindentation
SWFTextField->setLineSpacing
SWFTextField->setcolor
SWFTextField->setname
SWFTextField->addstring
SWFSprite
SWFSprite->add
SWFSprite->remove
SWFSprite->setframes
SWFSprite->nextframe
SWFbutton
SWFbutton->addShape
SWFbutton->setUp
SWFbutton->setOver
SWFbutton->setDown
SWFbutton->setHit
SWFbutton->addAction
SWFbutton->setAction
SWFAction

6.57.57 SWFText

[ Exemples avec SWFText ]  

Description

new swftext(void)

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


Chapitre précédentChapitre suivantAccueil nexen.net