略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: SWFSprite

2024-04-27

The SWFSprite class

(PHP 5 < 5.3.0, PECL ming 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 {
/* 方法 */
add ( object $object ) : void
__construct ( void )
labelFrame ( string $label ) : void
nextFrame ( void ) : void
remove ( object $object ) : void
setFrames ( int $number ) : void
stopSound ( SWFSound $sount ) : void
}

Table of Contents

add a note add a note

User Contributed Notes 1 note

up
1
o dot marce at free dot fr
13 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.

<?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);
?>

官方地址:https://www.php.net/manual/en/class.swfsprite.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3