From: Justin C. <ju...@po...> - 2004-01-15 17:41:23
|
Hi Raz, Do you feel you'd be ok to add this update to the Ming User Editable Docs (Wiki)? http://www.opaque.net/wiki/index.php?Ming Are you familiar with how Wiki's work? :-) Regards and best wishes, Justin Clift raz wrote: > Hi, > > I figured it out. It is not the php file handler that needs to be passed > as parameter to the SWFBitmap contructor but the content of file. > > Instead of : > > $m = new SWFMovie( fopen( $file, "rb" ) ); > > Use : > > $fh = fopen( $file, "rb" ); > $content = fread( $fh, 1000000 ); > $m = new SWFMovie( $content ); > close( $fh ); > > Hope it helps. > > Raz. |