0

背景が透明な (backgroundAlpha = 0) パネル (または Group/VGroup/HGroup) があり、背景画像が埋め込まれていません。一部の子ボタンを除いて「クリックスルー」が必要です。mouseEnable = false のみを設定すると、パネルは引き続きマウス クリックを受け取ります。しかし、mouseEnable と mouseChildren の両方を false に設定すると、ボタンをクリックできません。いくつかあると思いますので、子ボタンを取得する方法はマウスイベントを受け取り、パネルにはまだ「クリックスルー」があります。

アップデート

通常、以下のようなソース コードでは、ボタンはマウス イベントを受信する必要があります。また、パネルでクリックスルーが必要なため、メインコンテナーはマウスイベントを受け取り、アバターを移動します。

<s:Panel borderVisible="false" backgroundAlpha="0.0" 
     contentBackgroundAlpha="0.0" x="37" y="412" width="316" height="71">
<s:layout>
    <s:HorizontalLayout/>
</s:layout>
<s:Button id="shop_btn" width="55" height="30"/>
<s:Button id="inventory_btn" width="55" height="30"/>
<s:Button id="mail_btn" width="55" height="30" />
<s:Button id="buddy_btn" width="55" height="30" />
<s:Button id="quit_btn" width="55" height="30" /></s:Panel>
4

0 に答える 0