Services webmasters
Partenaires
Jeux concours gratuits
 
swfsprite->setframes
<<<
swfsprite swftext->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
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.80 swfsprite()Crée un sprite

[ Exemples avec swfsprite ]   PHP 4 >= 4.0.5

new  swfsprite ( 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.

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(0xff, 0, 0));
  
$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->nextFr color="#0000BB">$m->add($p);
  
$i->moveTo(1500,1000);
  
$i->setName("blah");
  
$m->setBackground(0xff, 0xff, 0xff);
  
$m->setDimension(3000,2000);
  
header('Content-type: application/x-shockwave-flash');
  
$m->output();
?>

<< swfsprite >>
swfsprite->setframes Ming pour Flash swftext->addstring
Services webmasters
Les manuels
 
CoursPHP.com - Reproduction interdite -