ң

SWFSprite

(PHP 4 >= 4.0.5)

SWFSprite - movie- ().

new swfsprite (void)

!

- . , ӣ , . .

swfsprite(), "movie clip", , . , , movie.

swfsprite() : swfsprite->add(), swfsprite->remove(), swfsprite->nextframe() swfsprite->setframes().

.

1. swfsprite()
<?php $s = new SWFShape(); $s->setRightFill($s->addFill(0xff, 0, 0)); $s->movePenTo(-500,-500); $s->drawLineTo(500,-500); $s->drawLineTo(500,500); $s->drawLineTo(-500,500); $s->drawLineTo(-500,-500); $p = new SWFSprite(); $i = $p->add($s); $p->nextFrame(); $i->rotate(15); $p->nextFrame(); $i->rotate(15); $p->nextFrame(); $i->rotate(15); $p->nextFrame(); $i->rotate(15); $p->nextFrame(); $i->rotate(15); $p->nextFrame(); $m = new SWFMovie(); $i = $m->add($p); $i->moveTo(1500,1000); $i->setName("blah"); $m->setBackground(0xff, 0xff, 0xff); $m->setDimension(3000,2000); header('Content-type: application/x-shockwave-flash'); $m->output(); ?>

ң
SWFSprite->setframes SWFText->addString