zoukankan      html  css  js  c++  java
  • Triggering effects when a container’s visibility is changed

    The following example shows you how you can trigger effects when the visible property changes on a Flex container or control by using the hideEffect and showEffect effects
    <?xml version="1.0" encoding="utf-8"?>
    <!-- http://blog.flexexamples.com/2007/09/20/triggering-effects-when-a-containers-visibility-is-changed/ -->
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
            layout
    ="vertical"
            verticalAlign
    ="middle"
            backgroundColor
    ="white">

        
    <mx:Zoom id="zoom" />

        
    <mx:ApplicationControlBar dock="true">
            
    <mx:Button label="hide"
                    click
    ="panel.visible = false;"
                    enabled
    ="{panel.visible}" />
            
    <mx:Button label="show"
                    click
    ="panel.visible = true;"
                    enabled
    ="{!panel.visible}" />
        
    </mx:ApplicationControlBar>

        
    <mx:Panel id="panel"
                title
    ="title"
                status
    ="status"
                showEffect
    ="{zoom}"
                hideEffect
    ="{zoom}"
                width
    ="100%"
                height
    ="100%">

            
    <mx:ControlBar>
                
    <mx:Label text="control bar" />
            
    </mx:ControlBar>
        
    </mx:Panel>

    </mx:Application>

  • 相关阅读:
    Linux文件系统之目录清单
    Linux系统使用iftop查看带宽占用情况
    性能分析之TCP全连接队列占满问题分析及优化过程(转载)
    什么是枚举及枚举的使用场合
    height:100%和height:auto的区别
    Jquery基础之DOM操作
    SSM三大框架整合(Spring+SpringMVC+MyBatis)
    js解析JSON
    mybatis中oracle实现分页效果
    MyBatis动态SQL语句
  • 原文地址:https://www.cnblogs.com/taobataoma/p/1037094.html
Copyright © 2011-2022 走看看