<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Open a new Shockwave Flash file</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.swf-oncondition.html">swf_oncondition</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.swf-ortho2.html">swf_ortho2</a></div> <div class="up"><a href="ref.swf.html">SWF Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.swf-openfile" class="refentry"> <div class="refnamediv"> <h1 class="refname">swf_openfile</h1> <p class="verinfo">(PHP 4)</p><p class="refpurpose"><span class="refname">swf_openfile</span> — <span class="dc-title">Open a new Shockwave Flash file</span></p> </div> <div class="refsect1 description" id="refsect1-function.swf-openfile-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type"><span class="type void">void</span></span> <span class="methodname"><strong>swf_openfile</strong></span> ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$filename</code></span> , <span class="methodparam"><span class="type">float</span> <code class="parameter">$width</code></span> , <span class="methodparam"><span class="type">float</span> <code class="parameter">$height</code></span> , <span class="methodparam"><span class="type">float</span> <code class="parameter">$framerate</code></span> , <span class="methodparam"><span class="type">float</span> <code class="parameter">$r</code></span> , <span class="methodparam"><span class="type">float</span> <code class="parameter">$g</code></span> , <span class="methodparam"><span class="type">float</span> <code class="parameter">$b</code></span> )</div> <p class="para rdfs-comment"> Opens a new file. This must be the first function you call, otherwise your script will not work. </p> </div> <div class="refsect1 parameters" id="refsect1-function.swf-openfile-parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><em><code class="parameter">filename</code></em></span> <dd> <p class="para"> The path to the SWF file. If you want to send your output to the screen, set this to <em>php://stdout</em>. </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">width</code></em></span> <dd> <p class="para"> The movie width </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">height</code></em></span> <dd> <p class="para"> The movie height </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">framerate</code></em></span> <dd> <p class="para"> The frame rate. </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">r</code></em></span> <dd> <p class="para"> Red value for the background. </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">g</code></em></span> <dd> <p class="para"> Green value for the background. </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">b</code></em></span> <dd> <p class="para"> Blue value for the background. </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-function.swf-openfile-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> No value is returned. </p> </div> <div class="refsect1 changelog" id="refsect1-function.swf-openfile-changelog"> <h3 class="title">Changelog</h3> <p class="para"> <table class="doctable informaltable"> <thead> <tr> <th>Version</th> <th>Description</th> </tr> </thead> <tbody class="tbody"> <tr> <td>4.0.1</td> <td> Support for <em>php://stdout</em> was added. </td> </tr> </tbody> </table> </p> </div> <div class="refsect1 seealso" id="refsect1-function.swf-openfile-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"> <span class="function"><a href="function.swf-closefile.html" class="function" rel="rdfs-seeAlso">swf_closefile()</a> - Close the current Shockwave Flash file</span></li> </ul> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.swf-oncondition.html">swf_oncondition</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.swf-ortho2.html">swf_ortho2</a></div> <div class="up"><a href="ref.swf.html">SWF Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>