downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

SWFSprite->__construct> <SWFSprite
Last updated: Fri, 14 Aug 2009

view this page in

SWFSprite->add

(PHP 4 >= 4.0.5)

SWFSprite->addAjoute un objet à un sprite

Description

void add ( object $object )
Avertissement

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->add() ajoute un objet swfshape(), un objet swfbutton(), un objet swftext(), un objet swfaction() ou un objet swfsprite().

Pour les types affichables (swfshape(), swfbutton(), swftext(), swfaction() ou swfsprite()), cette fonction retourne un gestionnaire vers l'objet dans la liste d'affichage.

Valeurs de retour

Aucune valeur n'est retournée.



add a note add a note User Contributed Notes
SWFSprite->add
php_dev at dunnbypaul dot net
31-Jul-2007 07:33
Apparently this function DOES, in fact, return a value as many of the MING examples show. It is a SWFDisplayItem.  Here is an excerpt of an example that appears elsewhere in the MING docs...

  $p = new SWFSprite();
  $i = $p->add($s);
  $p->nextFrame();
  $i->rotate(15);
  $p->nextFrame();

SWFSprite->__construct> <SWFSprite
Last updated: Fri, 14 Aug 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites