• 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>

  • 相关阅读:
    使用SWFUpload进行多文件上传
    TSQL递归
    Silverlight之视频录制
    Silverlight之摄像头麦克风使用
    Silverlight之文件上传组件
    SQL FOR XML
    XAML开发入门之XAML核心语法
    Ajax技术三种实现方式之xmlhttp+httphandler篇 (三)
    Ext中超时设定 ext.ajax.timeout
    后台执行js先执行前端的JS函数,再执行后台函数的按钮实
  • 原文地址:https://www.cnblogs.com/taobataoma/p/1037094.html
Copyright © 2020-2023  润新知