开发者

mouseover to a panel in flex

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜