I am trying out freemovie for generating SWF content ..
http://freemovie.sourceforge.net.
Freemovie works a bit like Ming ..
running the demo explained here ..
http://www.oreillynet.com/pub/a/javascript/2002/05/09/freemovie.html
this renders swf image in my browser ..
but what are the extra PHP lines to be added to write this browser rendered image to a file to be imported by another application?
Although the swf is rendered in te browser .. I don't need to view the swf in the browser .. only to allow the generated swf to be imported by another application .. which currently is spitting out "illegal header" when it tries to import the generated swf.
The script ends with calls to EndMovie() and GetMovie(). The former creates the SWF file header and splices it with the raw SWF byte stream, and the latter returns the complete movie byte stream, which can be sent to the requesting client with a simple print statement or saved to a file (in which case, the initial call to the header() function is redundant).
... here are the last few lines of the demo which generates the SWF into the browser ..
// ......
$swf->EndMovie();
//-------------------------------------------------------
// send movie to the browser
print $swf->GetMovie();
// at this point the swf movie is rendered o.k. in the browser ..
// [COLOR=orangered]<<<< -------- what do I add in here to write the swf movie into a file
// for importing by another application?[/COLOR]
exit;
?>