<?
  $m = new SWFMovie();
  $b = new SWFBitmap(fopen("backyard.jpg", "rb"));
  $m->setDimension($b->getWidth(), $b->getHeight());

  $i = $m->add($b);

  for($n=0; $n<20; ++$n)
  {
    $i->multColor(1.0-$n/10, 1.0, 1.0);
    $i->addColor(0xff*$n/20, 0, 0);
    $m->nextFrame();
  }
  for($n=20; $n>0; --$n)
  {
    $i->multColor(1.0-$n/10, 1.0, 1.0);
    $i->addColor(0xff*$n/20, 0, 0);
    $m->nextFrame();
  }

  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.