downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | 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 SVN repository for this website on svn.php.net.

Source of: /manual/en/function.swfbutton.setaction.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.setaction.php',
   
1 => 'SWFButton->setAction',
  ),
 
'up' =>
  array (
   
0 => 'class.swfbutton.php',
   
1 => 'The SWFButton class',
  ),
 
'prev' =>
  array (
   
0 => 'function.swfbutton.construct.php',
   
1 => 'SWFButton->__construct',
  ),
 
'next' =>
  array (
   
0 => 'function.swfbutton.setdown.php',
   
1 => 'SWFButton->setDown',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div id="function.swfbutton.setaction" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SWFButton-&gt;setAction</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.5)</p><p class="refpurpose"><span class="refname">SWFButton-&gt;setAction</span> &mdash; <span class="dc-title">Sets the action</span></p>

 </div>
 <a name="function.swfbutton.setaction.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>setAction</b></span>
     ( <span class="methodparam"><span class="type"><a href="class.swfaction.php" class="type SWFAction">SWFAction</a></span> <tt class="parameter">$action</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">
   Sets the action to be performed when the button is clicked.
  </p>
  <p class="para">
   This is a shortcut for <a href="function.swfbutton.addaction.php" class="xref">SWFButton->addAction</a>
   called with the <b><tt class="constant">SWFBUTTON_MOUSEUP</tt></b> flag.
  </p>
 </div>


 <a name="function.swfbutton.setaction.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">action</tt></i>
</span>

     </dt><dd class="listitem">

      <p class="para">
       An <a href="class.swfaction.php" class="classname">SWFAction</a>, returned by
       <a href="function.swfaction.construct.php" class="xref">SWFAction->__construct</a>.
      </p>
     </dd>

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


 <a name="function.swfbutton.setaction.returnvalues"></a><div class="refsect1 returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   No value is returned.
  </p>
 </div>


 <a name="function.swfbutton.setaction.seealso"></a><div class="refsect1 seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   </p><ul class="simplelist">
    <li class="member"><a href="function.swfbutton.addaction.php" class="xref">SWFButton->addAction</a></li>
    <li class="member"><a href="class.swfaction.php" class="xref">SWFAction</a></li>
   </ul><p>
  </p>
 </div>


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