2010-11-19 114 views
0

我是flex的新手。當我將鼠標懸停在面板中的圖標上時,特定的面板應該從前面覆蓋窗口中的所有其他面板。我該如何做到這一點請幫我解決鼠標懸停在flex面板

回答

1

爲其帶來了面板正面,試試這個: `

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

`