<!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>The SWFButton class</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="swfbitmap.getwidth.html">SWFBitmap::getWidth</a></div> <div class="next" style="text-align: right; float: right;"><a href="swfbutton.addaction.html">SWFButton::addAction</a></div> <div class="up"><a href="book.ming.html">Ming</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="class.swfbutton" class="reference"> <h1 class="title">The SWFButton class</h1> <div class="partintro"><p class="verinfo">(PHP 5 <= 5.3.0, PECL ming SVN)</p> <div class="section" id="swfbutton.intro"> <h2 class="title">Introduction</h2> <p class="para"> SWFButton. </p> </div> <div class="section" id="swfbutton.synopsis"> <h2 class="title">Class synopsis</h2> <div class="classsynopsis"> <div class="ooclass"></div> <div class="classsynopsisinfo"> <span class="ooclass"> <strong class="classname">SWFButton</strong> </span> {</div> <div class="classsynopsisinfo classsynopsisinfo_comment">/* Methods */</div> <div class="methodsynopsis dc-description"> <span class="type">void</span> <span class="methodname"><a href="swfbutton.addaction.html" class="methodname">addAction</a></span> ( <span class="methodparam"><span class="type"><a href="class.swfaction.html" class="type SWFAction">SWFAction</a></span> <code class="parameter">$action</code></span> , <span class="methodparam"><span class="type">int</span> <code class="parameter">$flags</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="type">SWFSoundInstance</span> <span class="methodname"><a href="swfbutton.addasound.html" class="methodname">addASound</a></span> ( <span class="methodparam"><span class="type"><a href="class.swfsound.html" class="type SWFSound">SWFSound</a></span> <code class="parameter">$sound</code></span> , <span class="methodparam"><span class="type">int</span> <code class="parameter">$flags</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="type">void</span> <span class="methodname"><a href="swfbutton.addshape.html" class="methodname">addShape</a></span> ( <span class="methodparam"><span class="type"><a href="class.swfshape.html" 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="methodsynopsis dc-description"> <span class="methodname"><a href="swfbutton.construct.html" class="methodname">__construct</a></span> ( <span class="methodparam">void</span> )</div> <div class="methodsynopsis dc-description"> <span class="type">void</span> <span class="methodname"><a href="swfbutton.setaction.html" class="methodname">setAction</a></span> ( <span class="methodparam"><span class="type"><a href="class.swfaction.html" class="type SWFAction">SWFAction</a></span> <code class="parameter">$action</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="type">void</span> <span class="methodname"><a href="swfbutton.setdown.html" class="methodname">setDown</a></span> ( <span class="methodparam"><span class="type"><a href="class.swfshape.html" class="type SWFShape">SWFShape</a></span> <code class="parameter">$shape</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="type">void</span> <span class="methodname"><a href="swfbutton.sethit.html" class="methodname">setHit</a></span> ( <span class="methodparam"><span class="type"><a href="class.swfshape.html" class="type SWFShape">SWFShape</a></span> <code class="parameter">$shape</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="type">void</span> <span class="methodname"><a href="swfbutton.setmenu.html" class="methodname">setMenu</a></span> ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$flag</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="type">void</span> <span class="methodname"><a href="swfbutton.setover.html" class="methodname">setOver</a></span> ( <span class="methodparam"><span class="type"><a href="class.swfshape.html" class="type SWFShape">SWFShape</a></span> <code class="parameter">$shape</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="type">void</span> <span class="methodname"><a href="swfbutton.setup.html" class="methodname">setUp</a></span> ( <span class="methodparam"><span class="type"><a href="class.swfshape.html" class="type SWFShape">SWFShape</a></span> <code class="parameter">$shape</code></span> )</div> }</div> </div> </div> <h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="swfbutton.addaction.html">SWFButton::addAction</a> — Adds an action</li><li><a href="swfbutton.addasound.html">SWFButton::addASound</a> — Associates a sound with a button transition</li><li><a href="swfbutton.addshape.html">SWFButton::addShape</a> — Adds a shape to a button</li><li><a href="swfbutton.construct.html">SWFButton::__construct</a> — Creates a new Button</li><li><a href="swfbutton.setaction.html">SWFButton::setAction</a> — Sets the action</li><li><a href="swfbutton.setdown.html">SWFButton::setDown</a> — Alias for addShape(shape, SWFBUTTON_DOWN)</li><li><a href="swfbutton.sethit.html">SWFButton::setHit</a> — Alias for addShape(shape, SWFBUTTON_HIT)</li><li><a href="swfbutton.setmenu.html">SWFButton::setMenu</a> — enable track as menu button behaviour</li><li><a href="swfbutton.setover.html">SWFButton::setOver</a> — Alias for addShape(shape, SWFBUTTON_OVER)</li><li><a href="swfbutton.setup.html">SWFButton::setUp</a> — Alias for addShape(shape, SWFBUTTON_UP)</li></ul> </div> <hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="swfbitmap.getwidth.html">SWFBitmap::getWidth</a></div> <div class="next" style="text-align: right; float: right;"><a href="swfbutton.addaction.html">SWFButton::addAction</a></div> <div class="up"><a href="book.ming.html">Ming</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>