繁体   English   中英

将鼠标悬停在Flex中的面板上

[英]mouseover to a panel in flex

我刚接触flex。当我将鼠标悬停在面板中的图标上时,该特定面板应该通过覆盖窗口中的所有其他面板而位于最前面。我该怎么做请帮帮我

要将面板放在前面,请尝试以下操作:

<mx:Script>
    <![CDATA[           
        protected function panel1_clickHandler(event:MouseEvent):void
        {
            setChildIndex(event.currentTarget as Panel, numChildren); 
        }
    ]]>
</mx:Script>

<mx:Panel width="200" height="400" y="50" x="50" rollOver="panel1_clickHandler(event)" title="back"/>
<mx:Panel width="200" height="400" id="otherPanel" rollOver="panel1_clickHandler(event)" title="front" />

`

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM