Ming (flash)
PHP Manual

SWFSprite

(No version information available, might be only in CVS)

SWFSprite — SWFSprite Class

Descripción

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 Members

Ejemplos

This simple example will spin gracefully a big red square.

Example#1 swfsprite() example

<?php
$s 
= new SWFShape();
$s->setRightFill($s->addFill(0xff00));
$s->movePenTo(-500, -500);
$s->drawLineTo(500, -500);
$s->drawLineTo(500500);
$s->drawLineTo(-500500);
$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(15001000);
$i->setName("blah");

$m->setBackground(0xff0xff0xff);
$m->setDimension(30002000);

header('Content-type: application/x-shockwave-flash');
$m->output();
?>


Ming (flash)
PHP Manual