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
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
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Генерация нетекстовых MIME форматов
- Введение
- Установка и настройка
- Предопределенные константы
- Примеры
- Ming Функции
- The SWFAction class
- The SWFBitmap class
- The SWFButton class
- The SWFDisplayItem class
- The SWFFill class
- The SWFFont class
- The SWFFontChar class
- The SWFGradient class
- The SWFMorph class
- The SWFMovie class
- The SWFPrebuiltClip class
- The SWFShape class
- The SWFSound class
- The SWFSoundInstance class
- The SWFSprite class
- The SWFText class
- The SWFTextField class
- The SWFVideoStream class
Коментарии
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);
?>