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);
?>
The SWFSprite class
(No version information available, might only be in SVN)
소개
An SWFSprite is also known as a "movie clip", this allows one to create objects which are animated in their own timelines. Hence, the sprite has most of the same methods as the movie.
클래스 개요
SWFSprite
{
/* 메소드 */
SWFSprite __construct
( void
)
void labelFrame
( string $label
)
void nextFrame
( void
)
void remove
( object $object
)
void setFrames
( int $number
)
}Table of Contents
- SWFSprite->add — Adds an object to a sprite
- SWFSprite->__construct — Creates a movie clip (a sprite)
- SWFSprite->labelFrame — Labels frame
- SWFSprite->nextFrame — Moves to the next frame of the animation
- SWFSprite->remove — Removes an object to a sprite
- SWFSprite->setFrames — Sets the total number of frames in the animation
- SWFSprite->startSound — 설명
- SWFSprite->stopSound — 설명
o dot marce at free dot fr
03-Oct-2005 12:47
