# The SWFSprite class

(PHP 5 < 5.3.0, PECL ming SVN)

## Introduction

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.

## Class synopsis

SWFSprite {
/* Methods */
add ( object `$object` ) : void
__construct ( void )
labelFrame ( string `$label` ) : void
nextFrame ( void ) : void
remove ( object `$object` ) : void
setFrames ( int `$number` ) : void
startSound ( SWFSound `$sount` ) : SWFSoundInstance
stopSound ( SWFSound `$sount` ) : void
}

## 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 — Description
- SWFSprite::stopSound — Description