PHP Velho Oeste 2024

SWFSprite クラス

(PHP 5 < 5.3.0, PECL ming SVN)

はじめに

SWFSprite は "ムービークリップ" ともいいます。これにより、作成したオブジェクトを 時間軸にそって動かすことができるようになります。 したがって、スプライトはムービーのメソッドの大半を保持しています。

クラス概要

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
}

目次

add a note add a note

User Contributed Notes 1 note

up
1
o dot marce at free dot fr
18 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);
?>
To Top