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, 20 May 2011

view this page in

SWFSprite->add

(PHP 4 >= 4.0.5)

SWFSprite->addAñade un objeto a un sprite

Descripción

void SWFSprite::add ( object $object )
Warning

Esta función ha sido declarada EXPERIMENTAL. Su comportamiento, su nombre y la documentación que le acompaña puede cambiar sin previo aviso en futuras versiones de PHP. Use esta función bajo su propio riesgo.

swfsprite->add() añade un objeto swfshape(), swfbutton(), swftext(), swfaction() o swfsprite().

Para tipos mostrables (swfshape(), swfbutton(), swftext(), swfaction() o swfsprite()), devuelve un gestor a un objeto de la lista de muestras.

Valores devueltos

No devuelve ningún valor.



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

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

 
show source | credits | stats | sitemap | contact | advertising | mirror sites