开发者

Flex Panel, Group click through and mouseChildren

开发者 https://www.devze.com 2023-03-11 15:06 出处:网络
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

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 cl开发者_如何学Pythonick 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>
0

精彩评论

暂无评论...
验证码 换一张
取 消