<?
  $s = new SWFShape();
  $f = $s->addFill(new SWFBitmap(fopen("alpha.dbl", "rb")));
  $f->moveTo(-16, -16);
  $s->setRightFill($f);

  $s->movePenTo(-16, -16);
  $s->drawLine(31, 0);
  $s->drawLine(0, 31);
  $s->drawLine(-31, 0);
  $s->drawLine(0, -31);

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

  for($n=0; $n<90; ++$n)
  {
    $i->rotate(4);
    $p->nextFrame();
  }

  $m = new SWFMovie();
  $m->setDimension(320, 240);

  $i = $m->add($p);
  $i->moveTo(120, 120);
  $i->scaleTo(6.0);

  $i = $m->add($p);
  $i->moveTo(200, 120);
  $i->scaleTo(6.0);

  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.