zoukankan      html  css  js  c++  java
  • 鼠标悬浮效果-串行效果和并行效果

    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx"
                   minWidth="955" minHeight="600"
                   creationComplete="init()"
                   >
       <fx:Declarations>
           <s:Sequence id="effect" target="{boxes}">
               <s:Fade alphaFrom="{boxes.alpha}" alphaTo="1"/>
               <s:Scale scaleXTo="1" scaleXFrom="{boxes.scaleX}"
                        scaleYTo="1" scaleYFrom="{boxes.scaleY}"/>
           </s:Sequence>
       </fx:Declarations>
        <s:Group id="boxes" alpha=".2" x="20" y="20" scaleX=".5" scaleY=".5" rollOverEffect="{effect}">
            <s:Rect width="200" height="200">
                <s:fill>
                    <s:SolidColor color="black"/>
                </s:fill>
            </s:Rect>
            
        </s:Group>
    </s:Application> 
    View Code

     以上为串行效果,使用Sequence

    一下为并行效果,使用Parallel

    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx"
                   minWidth="955" minHeight="600"
                   creationComplete="init()"
                   >
       <fx:Declarations>
           <s:Parallel id="effect" target="{boxes}">
               <s:Fade alphaFrom="{boxes.alpha}" alphaTo="1"/>
               <s:Scale scaleXTo="1" scaleXFrom="{boxes.scaleX}"
                        scaleYTo="1" scaleYFrom="{boxes.scaleY}"/>
           </s:Parallel>
       </fx:Declarations>
        <s:Group id="boxes" alpha=".2" x="20" y="20" scaleX=".5" scaleY=".5" rollOverEffect="{effect}">
            <s:Rect width="200" height="200">
                <s:fill>
                    <s:SolidColor color="black"/>
                </s:fill>
            </s:Rect>
            
        </s:Group>
    </s:Application> 
    View Code
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx"
                   minWidth="955" minHeight="600"
                   creationComplete="init()"
                   >
       <fx:Declarations>
           <s:Parallel id="effect" target="{boxes}">
               <s:Fade alphaFrom="{boxes.alpha}" alphaTo="1"/>
               <s:Scale scaleXTo="1" scaleXFrom="{boxes.scaleX}"
                        scaleYTo="1" scaleYFrom="{boxes.scaleY}"/>
           </s:Parallel>
       </fx:Declarations>
        <s:Group id="boxes" alpha=".2" x="20" y="20" scaleX=".5" scaleY=".5" rollOverEffect="{effect}">
            <s:Rect width="200" height="200">
                <s:fill>
                    <s:SolidColor color="black"/>
                </s:fill>
            </s:Rect>
            
        </s:Group>
    </s:Application> 
    View Code
  • 相关阅读:
    软考自查:面向对象设计
    软考自查:UML建模
    软考自查:数据库设计
    软考自查:数据流图(DFD)
    软考自查:多媒体基础知识
    .user.ini后门/上传黑名单绕过
    域渗透:钓鱼欺骗配合SMB重放攻击
    实现:ipc管道连接到远程计划任务种马
    实现:ipc命名管道连接
    实现:注册表的增删改查
  • 原文地址:https://www.cnblogs.com/zhugexiaobei/p/3244608.html
Copyright © 2011-2022 走看看