de haxe"><code class="sourceCode haxe"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="co">//更换upSkin对象</span></span>
<span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a>button.skin.upSkin = assets.getBitmapData(<span class="st">&quot;button2&quot;</span>);</span></code></pre></div>
<h4 id="皮肤逻辑">皮肤逻辑</h4>
<p>当通过createButton方法，只传入了一个upSkin参数的图像数据时，该Button被点击时，会呈现缩放�