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
[EMAIL PROTECTED]




-|.gOp.|Pr0fessi0nal


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to