Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

swfmovie(3) [php man page]

SWFMOVIE(3)								 1							       SWFMOVIE(3)

The SWFMovie class

INTRODUCTION
SWFMovie is a movie object representing an SWF movie. CLASS SYNOPSIS
SWFMovie SWFMovie Methods o mixed SWFMovie::add (object $instance) o void SWFMovie::addExport (SWFCharacter $char, string $name) o mixed SWFMovie::addFont (SWFFont $font) o SWFMovie::__construct ([int $version]) o SWFSprite SWFMovie::importChar (string $libswf, string $name) o SWFFontChar SWFMovie::importFont (string $libswf, string $name) o void SWFMovie::labelFrame (string $label) o void SWFMovie::nextFrame (void ) o int SWFMovie::output ([int $compression]) o void SWFMovie::remove (object $instance) o int SWFMovie::save (string $filename, [int $compression = -1]) o int SWFMovie::saveToFile (resource $x, [int $compression = -1]) o void SWFMovie::setbackground (int $red, int $green, int $blue) o void SWFMovie::setDimension (float $width, float $height) o void SWFMovie::setFrames (int $number) o void SWFMovie::setRate (float $rate) o SWFSoundInstance SWFMovie::startSound (SWFSound $sound) o void SWFMovie::stopSound (SWFSound $sound) o int SWFMovie::streamMP3 (mixed $mp3file, [float $skip]) o void SWFMovie::writeExports (void ) PHP Documentation Group SWFMOVIE(3)

Check Out this Related Man Page

SWFDISPLAYITEM.SETRATIO(3)						 1						SWFDISPLAYITEM.SETRATIO(3)

SWFDisplayItem::setRatio - Sets the object's ratio

SYNOPSIS
void SWFDisplayItem::setRatio (float $ratio) DESCRIPTION
Warning This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk. swfdisplayitem.setratio(3) sets the object's ratio to $ratio. Obviously only useful for morphs. The object may be a swfshape(3), a swfbutton(3), a swftext(3) or a swfsprite(3) object. It must have been added using the swfmovie.add(3). RETURN VALUES
No value is returned. EXAMPLES
This simple example will morph nicely three concentric circles. Example #1 swfdisplayitem.setname(3) example <?php $p = new SWFMorph(); $g = new SWFGradient(); $g->addEntry(0.0, 0, 0, 0); $g->addEntry(0.16, 0xff, 0xff, 0xff); $g->addEntry(0.32, 0, 0, 0); $g->addEntry(0.48, 0xff, 0xff, 0xff); $g->addEntry(0.64, 0, 0, 0); $g->addEntry(0.80, 0xff, 0xff, 0xff); $g->addEntry(1.00, 0, 0, 0); $s = $p->getShape1(); $f = $s->addFill($g, SWFFILL_RADIAL_GRADIENT); $f->scaleTo(0.05); $s->setLeftFill($f); $s->movePenTo(-160, -120); $s->drawLine(320, 0); $s->drawLine(0, 240); $s->drawLine(-320, 0); $s->drawLine(0, -240); $g = new SWFGradient(); $g->addEntry(0.0, 0, 0, 0); $g->addEntry(0.16, 0xff, 0, 0); $g->addEntry(0.32, 0, 0, 0); $g->addEntry(0.48, 0, 0xff, 0); $g->addEntry(0.64, 0, 0, 0); $g->addEntry(0.80, 0, 0, 0xff); $g->addEntry(1.00, 0, 0, 0); $s = $p->getShape2(); $f = $s->addFill($g, SWFFILL_RADIAL_GRADIENT); $f->scaleTo(0.05); $f->skewXTo(1.0); $s->setLeftFill($f); $s->movePenTo(-160, -120); $s->drawLine(320, 0); $s->drawLine(0, 240); $s->drawLine(-320, 0); $s->drawLine(0, -240); $m = new SWFMovie(); $m->setDimension(320, 240); $i = $m->add($p); $i->moveTo(160, 120); for ($n=0; $n<=1.001; $n+=0.01) { $i->setRatio($n); $m->nextFrame(); } header('Content-type: application/x-shockwave-flash'); $m->output(); ?> PHP Documentation Group SWFDISPLAYITEM.SETRATIO(3)
Man Page