<!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>Sets the object's name</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="swfdisplayitem.setmatrix.html">SWFDisplayItem::setMatrix</a></div> <div class="next" style="text-align: right; float: right;"><a href="swfdisplayitem.setratio.html">SWFDisplayItem::setRatio</a></div> <div class="up"><a href="class.swfdisplayitem.html">SWFDisplayItem</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="swfdisplayitem.setname" class="refentry"> <div class="refnamediv"> <h1 class="refname">SWFDisplayItem::setName</h1> <p class="verinfo">(PHP 4 >= 4.0.5)</p><p class="refpurpose"><span class="refname">SWFDisplayItem::setName</span> — <span class="dc-title">Sets the object's name</span></p> </div> <div class="refsect1 description" id="refsect1-swfdisplayitem.setname-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>SWFDisplayItem::setName</strong></span> ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$name</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"> <span class="function"><strong>swfdisplayitem::setname()</strong></span> sets the object's name to <em><code class="parameter">name</code></em>, for targetting with action script. Only useful on sprites. </p> <p class="simpara"> The object may be a <span class="function"><strong>swfshape()</strong></span>, a <span class="function"><strong>swfbutton()</strong></span>, a <span class="function"><strong>swftext()</strong></span> or a <span class="function"><strong>swfsprite()</strong></span> object. It must have been added using the <span class="function"><a href="swfmovie.add.html" class="function">swfmovie::add()</a></span>. </p> </div> <div class="refsect1 returnvalues" id="refsect1-swfdisplayitem.setname-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> No value is returned. </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="swfdisplayitem.setmatrix.html">SWFDisplayItem::setMatrix</a></div> <div class="next" style="text-align: right; float: right;"><a href="swfdisplayitem.setratio.html">SWFDisplayItem::setRatio</a></div> <div class="up"><a href="class.swfdisplayitem.html">SWFDisplayItem</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>