ddddddd.mxml

来自「Java界面解决方案。使用FLEX和后台数据库通讯。完美界面效果。可作为BS系统」· MXML 代码 · 共 37 行

MXML
37
字号
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" >
<mx:Style>
HDividedBox{
horizontalDividerCursor:Embed(source="img/xn.png");
}

</mx:Style>
<mx:Script>
<![CDATA[
   import mx.core.UIComponent;
   import mx.events.DividerEvent;

        
   private function hiddenLeft(event:DividerEvent):void{
    var child:UIComponent = event.target.getChildAt(0);
    if(child.width == 0){
     expand1.play();
    }else{
     expand.play();
    }
   }

   ]]>
</mx:Script>
<mx:Resize id="expand" target="{childcontain}" widthTo="0"
        duration="1000"/>
<mx:Resize id="expand1" target="{childcontain}" widthTo="400"
        duration="1000"/>         
<mx:HDividedBox width="100%" height="100%"  dividerPress="hiddenLeft(event)" id="container"> 
  <mx:VDividedBox width="400" height="100%" id="childcontain">
     <mx:Panel width="100%" height="600" id="pan"/><mx:VBox width="100%" height="100%"/> 
   </mx:VDividedBox>
   <mx:Canvas height="100%" width="100%"/>
</mx:HDividedBox>
</mx:Application>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?