开发者

mouseover to a panel in flex

开发者 https://www.devze.com 2023-01-25 18:18 出处:网络
I am new to flex.When i mouse over on the icon in the panel that par开发者_开发技巧ticular panel should come front by overriding all other panel in the window.How can i do this Pleases help me outFor

I am new to flex.When i mouse over on the icon in the panel that par开发者_开发技巧ticular panel should come front by overriding all other panel in the window.How can i do this Pleases help me out


For bringing a panel to front, try this: `

<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" />

`

0

精彩评论

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