Source of: /manual/en/function.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 => 'function.swfbutton.addshape.php',
1 => 'SWFButton->addShape',
),
'up' =>
array (
0 => 'class.swfbutton.php',
1 => 'The SWFButton class',
),
'prev' =>
array (
0 => 'function.swfbutton.addasound.php',
1 => 'SWFButton->addASound',
),
'next' =>
array (
0 => 'function.swfbutton.construct.php',
1 => 'SWFButton->__construct',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div id="function.swfbutton.addshape" class="refentry">
<div class="refnamediv">
<h1 class="refname">SWFButton->addShape</h1>
<p class="verinfo">(PHP 4 >= 4.0.5)</p><p class="refpurpose"><span class="refname">SWFButton->addShape</span> — <span class="dc-title">Adds a shape to a button</span></p>
</div>
<a name="function.swfbutton.addshape.description"></a><div class="refsect1 description">
<h3 class="title">Description</h3>
<div class="classsynopsis">
<div class="ooclass"><a href="class.swfbutton.php" class="classname">SWFButton</a></div>
<div class="methodsynopsis dc-description">
<span class="type">void</span> <span class="methodname"><b>addShape</b></span>
( <span class="methodparam"><span class="type"><a href="class.swfshape.php" class="type SWFShape">SWFShape</a></span> <tt class="parameter">$shape</tt></span>
, <span class="methodparam"><span class="type">int</span> <tt class="parameter">$flags</tt></span>
)</div>
</div>
<div class="warning"><b class="warning">Warning</b><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 <i><tt class="parameter">shape</tt></i>
to the button.
</p>
</div>
<a name="function.swfbutton.addshape.parameters"></a><div class="refsect1 parameters">
<h3 class="title">Parameters</h3>
<p class="para">
</p><dl>
<dt class="varlistentry">
<span class="term"><i><tt class="parameter">shape</tt></i>
</span>
</dt><dd class="listitem">
<p class="para">
An <a href="class.swfshape.php" class="classname">SWFShape</a> instance
</p>
</dd>
<dt class="varlistentry">
<span class="term"><i><tt class="parameter">flags</tt></i>
</span>
</dt><dd class="listitem">
<p class="para">
The following <i><tt class="parameter">flags</tt></i>
are valid:
<b><tt class="constant">SWFBUTTON_UP</tt></b>,
<b><tt class="constant">SWFBUTTON_OVER</tt></b>,
<b><tt class="constant">SWFBUTTON_DOWN</tt></b> and
<b><tt class="constant">SWFBUTTON_HIT</tt></b>.
</p>
<p class="para">
<b><tt class="constant">SWFBUTTON_HIT</tt></b> isn't ever displayed, it defines
the hit region for the button. That is, everywhere the hit shape would
be drawn is considered a "touchable" part of the button.
</p>
</dd>
</dl>
<p>
</p>
</div>
<a name="function.swfbutton.addshape.returnvalues"></a><div class="refsect1 returnvalues">
<h3 class="title">Return Values</h3>
<p class="para">
No value is returned.
</p>
</div>
</div><?php manual_footer(); ?>