Mercurial > hg > extraction-interface
view _xampp/test/xampp_ming/bitmaps.php @ 3:f196939ccc03
error handle and alert feedback to user.
If error occurs, user'll not be halted by the loading page and sections_revisions will recovery to previous version.
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Mon, 26 Jan 2015 12:19:39 +0100 |
parents | b12c99b7c3f0 |
children |
line wrap: on
line source
<?php Ming_setScale(20.0); ming_useswfversion(7); $movie=new SWFMovie(); $movie->setRate(31); $movie->setDimension(400,300); $movie->setBackground(0xCC,0xCC,0xCC); $filesrc1="jpg.jpg"; $filesrc2="png.png"; $filesrc3="gif.gif"; $filecontents1=file_get_contents($filesrc1); $img = new SWFBitmap($filecontents1); $f1=$movie->add($img); $f1->moveto(90,50); $filecontents2=file_get_contents($filesrc2); $img = new SWFBitmap($filecontents2); $f1=$movie->add($img); $f1->moveto(10,10); $filecontents3=file_get_contents($filesrc3); $img = new SWFBitmap($filecontents3); $f1=$movie->add($img); $f1->moveto(170,80); header('Content-Type: application/x-shockwave-flash'); $movie->output(0); ?>