note 57422 modified in function.swfsprite by danbrown

From: Date: Fri, 28 Nov 2008 21:37:11 +0000
Subject: note 57422 modified in function.swfsprite by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-147248@lists.php.net to get a copy of this message
Note that when adding an sprite to a container (sprite or movie), only the object added to the sprite before the addin to the container will be displayed. <?php // In this case, myShape will be displayed... $sp=new SWFSprite(); $container=new SWFSprite(); $sp->add($myShape); $container->add($sp); // but not in this case $sp=new SWFSprite(); $container=new SWFSprite(); $container->add($sp); $sp->add($myShape); ?> --was-- Note that when adding an sprite to a container (sprite or movie), only the object added to the sprite before the addin to the container will be displayed. // In this case, myShape will be displayed... $sp=new SWFSprite(); $container=new SWFSprite(); $sp->add($myShape); $container->add($sp); // but not in this case $sp=new SWFSprite(); $container=new SWFSprite(); $container->add($sp); $sp->add($myShape); http://php.net/manual/en/function.swfsprite.php

« previous php.notes (#147248) next »