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.32 SWFShape

[ Exemples avec SWFShape ]  

Description

new swfshape(void)

swfshape crée une nouvelle forme.

SWFShape a les méthodes suivantes : swfshape->setline, swfshape->addfill, swfshape->setleftfill, swfshape->setrightfill, swfshape->movepento, swfshape->movepen, swfshape->drawlineto, swfshape->drawline, swfshape->drawcurveto et swfshape->drawcurve.

Ce exemple simple dessine un quadrant d'ellipse rouge.
Exemple avec swfshape

<?php
  $s 
= new SWFShape();
  
$s->setLine(400x7f00);
  
$s->setRightFill($s->addFill(0xff00));
  
$s->movePenTo(200200);
  
$s->drawLineTo(6200200);
  
$s->drawLineTo(62004600);
  
$s->drawCurveTo(2004600200200);
  
$m = new SWFMovie();
  
$m->setDimension(64004800);
  
$m->setRate(12.0);
  
$m->add($s);
  
$m->nextFrame();
  
header('Content-type: application/x-shockwave-flash');
  
$m->output();
?>


Chapitre précédentChapitre suivantAccueil nexen.net