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

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

  $i = $m->add($t);
  $i->moveTo(160-$t->getWidth("fnar! fnar!")/2, 120+$t->getAscent()/2);

  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.