"cb2-5"><a href="#cb2-5" aria-hidden="true" tabindex="-1"></a>batchs.addChild(button);</span></code></pre></div>
<p>如按钮需要侦听点击事件，可简易的使用：</p>
<div class="sourceCode" id="cb3"><pre class="sourceCode haxe"><code class="sourceCode haxe"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a>button.clickEvent = <span class="kw">function</span>():<span class="dt">Void</span>{</span>
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a>  <span 