PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Ming Функции> <Примеры
Last updated: Fri, 10 Oct 2008

view this page in

SWFSPrite basic examples

This simple example will spin gracefully a big red square.

Пример #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();
?>



add a note add a note User Contributed Notes
SWFSPrite basic examples
There are no user contributed notes for this page.

Ming Функции> <Примеры
Last updated: Fri, 10 Oct 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites