0

I have Panel (or Group/VGroup/HGroup) with background transparent (backgroundAlpha = 0) and doesn't have any embedded background image. I want 'click through' except some children buttons. If I set mouseEnable = false only, the panel still receive mouse click. But set both mouseEnable and mouseChildren to false I can't click the buttons. I think there're some So how I get children button receive mouse event and panel still have 'click through'.

UPDATE

Typically the source code like below, the buttons need receive mouse events. And I want click-through on panel and therefore the main container will receive the mouse event to move my avatar.

<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>
ekad
  • 14,436
  • 26
  • 44
  • 46
Kieran Dang
  • 447
  • 2
  • 17
  • What's the problem if someone clicks on the panel? Is the click not getting through to the buttons? A quick code example may help here. – Jason Towne Jun 08 '11 at 15:04
  • I want click-through on panel and therefore the main container will receive the mouse event to move my avatar, excepting the buttons. – Kieran Dang Jun 08 '11 at 19:20

0 Answers0