downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Our source is open

The syntax highlighted source is automatically generated by PHP from the plaintext script. If you're interested in what's behind the several functions we used, you can always take a look at the source of the following files:

Of course, if you want to see the source of this page, we have it available. You can also browse the Git repository for this website on git.php.net.

Source of: /manual/en/swfbutton.addshape.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/class.swfbutton.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'swfbutton.addshape.php',
   
1 => 'SWFButton::addShape',
  ),
 
'up' =>
  array (
   
0 => 'class.swfbutton.php',
   
1 => 'SWFButton',
  ),
 
'prev' =>
  array (
   
0 => 'swfbutton.addasound.php',
   
1 => 'SWFButton::addASound',
  ),
 
'next' =>
  array (
   
0 => 'swfbutton.construct.php',
   
1 => 'SWFButton::__construct',
  ),
 
'alternatives' =>
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div id="swfbutton.addshape" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SWFButton::addShape</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.5)</p><p class="refpurpose"><span class="refname">SWFButton::addShape</span> &mdash; <span class="dc-title">Adds a shape to a button</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-swfbutton.addshape-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>SWFButton::addShape</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.swfshape.php" class="type SWFShape">SWFShape</a></span> <code class="parameter">$shape</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$flags</code></span>
   )</div>

  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">This function is
<em class="emphasis">EXPERIMENTAL</em>. The behaviour of this function, its name, and
surrounding documentation may change without notice in a future release of PHP.
This function should be used at your own risk.
</p></div>
  <p class="para">
   Adds the given <em><code class="parameter">shape</code></em> to the button.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-swfbutton.addshape-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    <dt>

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

      <p class="para">
       An <a href="class.swfshape.php" class="classname">SWFShape</a> instance
      </p>
     </dd>

    </dt>

    <dt>

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

      <p class="para">
       The following <em><code class="parameter">flags</code></em> are valid:
       <strong><code>SWFBUTTON_UP</code></strong>,
       <strong><code>SWFBUTTON_OVER</code></strong>,
       <strong><code>SWFBUTTON_DOWN</code></strong> and
       <strong><code>SWFBUTTON_HIT</code></strong>.
      </p>
      <p class="para">
       <strong><code>SWFBUTTON_HIT</code></strong> isn&#039;t ever displayed, it defines
       the hit region for the button. That is, everywhere the hit shape would
       be drawn is considered a &quot;touchable&quot; part of the button.
      </p>
     </dd>

    </dt>

   </dl>

  </p>
 </div>


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


</div><?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites