开发者

Flex Panel, Group click through and mouseChildren

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜