Re: MING
| From: | Pac mon | Date: | Sun, 17 Feb 2002 09:42:13 +0000 |
| Subject: | Re: MING | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-12117@lists.php.net to get a copy of this message | ||
The SWFBitmap() function takes two parameters. One is optional. The first is a FILENAME the second is a file that acts as a alphamask. So to correct your problem do this:
$img = new SWFBitmap($dram);
Read more here:
http://www.php.net/manual/en/function.swfbitmap.php
----Original Message Follows----
For PHP 4.0.8 I had function that converted .jpg in .swf
-----------------
Ming_setScale(20);
$fp = fopen($dram,"r");
$end=10000000;
$i = fread($fp,$end);
$img = new SWFBitmap($i);
fclose($fp);
$m = new SWFMovie();
$m->setDimension(100,100);
$m->add($img);
$m->save("myURL/movie.swf");
ImageDestroy($new);
----------------------------
But whan I install PHP 4.1.1 function stops working on string $img = new SWFBitmap($i);
and return "Sorry, can't tell what type of file ÿØÿà is in ".
I didn't change anything!
Help is much appreciated!
Thanks,
Josh Seward
js389599@ohiou.edu
-|.gOp.|Pr0fessi0nal
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com