A Simple Movie : SWFMovie « Utility Function « PHP






A Simple Movie

 
<?php
    $mov = new SWFMovie( );
    $mov->setDimension(200,20);

    $shape = new SWFShape( );
    $shape->setLeftFill($shape->addFill(0xff, 0, 0));
    $shape->movePenTo(0,0);
    $shape->drawLineTo(199,0);
    $shape->drawLineTo(0,0);

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








Related examples in the same category

1.Generating a Flash movie