SunshinePHP 2016

La classe SWFSprite

(PHP 5 <= 5.3.0, PECL ming SVN)


SWFSprite est également connu sous le nom "movie clip", elle vous permet de créer des objets qui sont animés.

Synopsis de la classe

SWFSprite {
/* Méthodes */
void add ( object $object )
__construct ( void )
void labelFrame ( string $label )
void nextFrame ( void )
void remove ( object $object )
void setFrames ( int $number )
SWFSoundInstance startSound ( SWFSound $sount )
void stopSound ( SWFSound $sount )


add a note add a note

User Contributed Notes 1 note

o dot marce at free dot fr
10 years ago
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();

// but not in this case
$sp=new SWFSprite();
$container=new SWFSprite();
To Top