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);
?>
SWFSprite クラス
(バージョン情報なし。おそらく SVN 版にしか存在しないでしょう)
導入
SWFSprite は "ムービークリップ" ともいいます。これにより、作成したオブジェクトを 時間軸にそって動かすことができるようになります。 したがって、スプライトはムービーのメソッドの大半を保持しています。
クラス概要
目次
- SWFSprite::add — オブジェクトをスプライトに追加する
- SWFSprite::__construct — ムービークリップ (スプライト) を作成する
- SWFSprite::labelFrame — フレームにラベルをつける
- SWFSprite::nextFrame — 動画の次のフレームに移動する
- SWFSprite::remove — オブジェクトをスプライトから削除する
- SWFSprite::setFrames — 動画の総フレーム数を設定する
- SWFSprite::startSound — 説明
- SWFSprite::stopSound — 説明
o dot marce at free dot fr ¶
7 years ago
