Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 6168

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!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>Controls location, appearance and active area of the current button</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.swf-actionwaitforframe.html">swf_actionwaitforframe</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.swf-addcolor.html">swf_addcolor</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-addbuttonrecord" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">swf_addbuttonrecord</h1>
  <p class="verinfo">(PHP 4)</p><p class="refpurpose"><span class="refname">swf_addbuttonrecord</span> &mdash; <span class="dc-title">Controls location, appearance and active area of the current button</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.swf-addbuttonrecord-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_addbuttonrecord</strong></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$states</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$shapeid</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$depth</code></span>
   )</div>

  <p class="para rdfs-comment">
   Allow you to define the specifics of using a button.  
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.swf-addbuttonrecord-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    <dt>

     <span class="term"><em><code class="parameter">states</code></em></span>
     <dd>

      <p class="para">
       Defines what states the button can have, these can be any or all of
       the following constants: <strong><code>BSHitTest</code></strong>, 
       <strong><code>BSDown</code></strong>, <strong><code>BSOver</code></strong> or
       <strong><code>BSUp</code></strong>.   
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">shapeid</code></em></span>
     <dd>

      <p class="para">
       The second parameter, the <em><code class="parameter">shapeid</code></em> is the look
       of the button, this is usually the object id of the shape of the
       button. 
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">depth</code></em></span>
     <dd>

      <p class="para">
       This parameter is the placement of the button in the current frame.
      </p>
     </dd>

    </dt>

   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.swf-addbuttonrecord-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   No value is returned.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.swf-addbuttonrecord-examples">
  <h3 class="title">Examples</h3>
  <p class="para">
   <div class="example" id="example-3574">
    <p><strong>Example #1  <span class="function"><strong>swf_addbuttonrecord()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />swf_startButton</span><span style="color: #007700">(</span><span style="color: #0000BB">$objid</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">TYPE_MENUBUTTON</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">swf_addButtonRecord</span><span style="color: #007700">(</span><span style="color: #0000BB">BSDown</span><span style="color: #007700">|</span><span style="color: #0000BB">BSOver</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$buttonImageId</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">340</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">swf_onCondition</span><span style="color: #007700">(</span><span style="color: #0000BB">MenuEnter</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">swf_actionGetUrl</span><span style="color: #007700">(</span><span style="color: #DD0000">"http://www.example.com"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"_level1"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">swf_onCondition</span><span style="color: #007700">(</span><span style="color: #0000BB">MenuExit</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">swf_actionGetUrl</span><span style="color: #007700">(</span><span style="color: #DD0000">""</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"_level1"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">swf_endButton</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
    </div>

   </div>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.swf-actionwaitforframe.html">swf_actionwaitforframe</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.swf-addcolor.html">swf_addcolor</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>