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.80 SWFSprite

[ Exemples avec SWFSprite ]  

Description

new swfsprite(void)

swfsprite sont aussi connue sous le nom de "clip" : ils permettent la création d'objet animé dans une animation, avec un scénario propre. De ce fait, un sprite a les mêmes méthodes qu'une animation.

swfsprite a les méthodes suivantes : swfsprite->add, swfsprite->remove, swfsprite->nextframe et swfsprite->setframes.

Ce exemple pratique fait tourner un superbe carré rouge.
Exemple de swfsprite

<?php
  $s 
= new SWFShape();
  
$s->setRightFill($s->addFill(0xff00));
  
$s->movePenTo(-500,-500);
  
$s->drawLineTo(500,-500);
  
$s->drawLineTo(500,500);
  
$s->drawLineTo(-500,500);
  
$s->drawLineTo(-500,-500);
  
$p = new SWFSprite();
  
$i $p->add($s);
  
$p->nextFrame();
  
$i->rotate(15);
  
$p->nextFrame();
  
$i->rotate(15);
  
$p->nextFrame();
  
$i->rotate(15);
  
$p->nextFrame();
  
$i->rotate(15);
  
$p->nextFrame();
  
$i->rotate(15);
  
$p->nextFrame();
  
$m = new SWFMovie();
  
$i $m->add($p);
  
$i->moveTo(1500,1000);
  
$i->setName("blah");
  
$m->setBackground(0xff0xff0xff);
  
$m->setDimension(3000,2000);
  
header('Content-type: application/x-shockwave-flash');
  
$m->output();
?>


Chapitre précédentChapitre suivantAccueil nexen.net