home *** CD-ROM | disk | FTP | other *** search
/ Enter 2004 June / ENTER.ISO / files / xampp-win32-1.4.5-installer.exe / xampp / winming_ok.php < prev    next >
Encoding:
PHP Script  |  2003-11-22  |  755 b   |  25 lines

  1. <?php 
  2. // create movie and set parameters 
  3. $movie=new SWFMovie(); 
  4. // $movie->setBackground(0xee,0xee,0xff);  // nice light blue 
  5. $movie->setBackground(0x00, 0x00, 0xff);
  6. $movie->setDimension(800,600); 
  7. // draw rectangles 
  8. for($c=0;$c<5;$c++) 
  9. { $shape=new SWFShape(); 
  10.   // set line width 20, with blue shade 
  11.   $shape->setLine(20,0x00,0x00,$c*50); 
  12.   $offset=$c*20; 
  13.   $shape->movePenTo(100+$offset,100+$offset); 
  14.   $shape->drawLineTo(700-$offset,100+$offset); 
  15.   $shape->drawLineTo(700-$offset,500-$offset); 
  16.   $shape->drawLineTo(100+$offset,500-$offset); 
  17.   $shape->drawLineTo(100+$offset,100+$offset); 
  18.   // add to canvas 
  19.   $movie->add($shape); 
  20.   } 
  21. // send output 
  22. // header("Content-Type:application/x-shockwave-flash");  
  23. $movie->output(); 
  24. ?> 
  25.