Re: MING

From: Date: Sun, 17 Feb 2002 13:02:52 +0000
Subject: Re: MING
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-12118@lists.php.net to get a copy of this message
I got the example below straight from the link you gave! I also have the line that you said would correct the problem already in the code. $img = new SWFBitmap($i); Thanks, ----- Original Message ----- From: "Pac mon" <cake27@hotmail.com> To: <php-windows@lists.php.net> Sent: Sunday, February 17, 2002 1:42 AM Subject: Re: [PHP-WIN] MING > 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 > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.windows (#12118) next »