<?
  $s = new SWFShape();
  $s->setRightFill($s->addFill(0xff, 0, 0));
  $s->movePenTo(-50,-50);
  $s->drawLineTo(50,-50);
  $s->drawLineTo(50,50);
  $s->drawLineTo(-50,50);
  $s->drawLineTo(-50,-50);

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

  for($j=0; $j<17; ++$j)
  {
    $p->nextFrame();
    $i->rotate(5);
  }
  $p->nextFrame();

  $m = new SWFMovie();
  $i = $m->add($p);
  $i->moveTo(160,120);
  $i->setName("blah");

  $m->setBackground(0xff, 0xff, 0xff);
  $m->setDimension(320,240);

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

click for popup

back to examples

All content Copyright (C) 2000-2001 Opaque Industries except where noted otherwise.