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);
?>
La classe SWFSprite
(No version information available, might only be in SVN)
Introduction
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
Sommaire
- SWFSprite::add — Ajoute un objet à un sprite
- SWFSprite::__construct — Crée un clip vidéo (un sprite)
- SWFSprite::labelFrame — Libellé d'une image
- SWFSprite::nextFrame — Déplace la prochaine image de l'animation
- SWFSprite::remove — Efface l'objet d'un sprite
- SWFSprite::setFrames — Définit le nombre total d'images dans l'animation
- SWFSprite::startSound — Description
- SWFSprite::stopSound — Description
o dot marce at free dot fr ¶
7 years ago
