Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...

When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

SWFSPrite basic examples

This simple example will spin gracefully a big red square.

Example #1 swfsprite() example

= new SWFShape();
$s->movePenTo(-500, -500);
$s->drawLineTo(500, -500);
$s->drawLineTo(-500, -500);

$p = new SWFSprite();
$i $p->add($s);

$m = new SWFMovie();
$i $m->add($p);


header('Content-type: application/x-shockwave-flash');

PHP Manual