<?
  $f = new SWFFont("Techno.fdb");
  $t = new SWFText();
  $t->setFont($f);
  $t->moveTo(200, 2400);
  $t->setColor(0xff, 0xff, 0);
  $t->setHeight(1200);
  $t->addString("fnar! fnar!");

  $m = new SWFMovie();
  $m->setDimension(5400, 3600);
  $m->setRate(12.0);

//  $m->add($f); // don't have to add font anymore!
  $m->add($t);

  $m->nextFrame();

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

back to examples

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