• 串行效果 并行效果 合成效果


    <?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"
                   applicationComplete="effect.play();">
      <fx:Declarations>
        <s:Sequence id="effect" target="{boxes}" repeatCount="5">
          <s:Parallel>
            <s:Fade alphaFrom="{boxes.alpha}" alphaTo="1" />
            <s:Scale scaleXTo="1" scaleXFrom="{boxes.scaleX}"
                     scaleYTo="1" scaleYFrom="{boxes.scaleY}"/>
          </s:Parallel>
          <s:Pause duration="2000" />
          <s:Parallel>
            <s:Fade alphaFrom="1" alphaTo="0" />
            <s:Scale scaleXTo=".5" scaleXFrom="1"
                     scaleYTo=".5" scaleYFrom="1"/>
          </s:Parallel>
        </s:Sequence>
      </fx:Declarations>
     
      <s:Group id="boxes" alpha=".2" x="20" y="20" scaleX=".5" scaleY=".5">
        <s:Rect width="200" height="200">
          <s:fill>
            <s:SolidColor color="black" />
          </s:fill>
        </s:Rect>
      </s:Group>
    </s:Application>

    <?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">
      <fx:Declarations>
        <s:Parallel id="effect" target="{box}">
          <s:Fade alphaFrom="{box.alpha}" alphaTo="1" />
          <s:Scale scaleXTo="1" scaleXFrom="{box.scaleX}"
                   scaleYTo="1" scaleYFrom="{box.scaleY}"/>
        </s:Parallel>
      </fx:Declarations>
     
      <s:Group id="box" 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>

    <?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"
                   applicationComplete="effect.play();">
      <fx:Declarations>
        <s:Sequence id="effect" target="{boxes}" repeatCount="5">
          <s:Parallel>
            <s:Fade alphaFrom="{boxes.alpha}" alphaTo="1" />
            <s:Scale scaleXTo="1" scaleXFrom="{boxes.scaleX}"
                     scaleYTo="1" scaleYFrom="{boxes.scaleY}"/>
          </s:Parallel>
          <s:Parallel>
            <s:Fade alphaFrom="1" alphaTo="0" />
            <s:Scale scaleXTo=".5" scaleXFrom="1"
                     scaleYTo=".5" scaleYFrom="1"/>
          </s:Parallel>
        </s:Sequence>
      </fx:Declarations>
     
      <s:Group id="boxes" alpha=".2" x="20" y="20" scaleX=".5" scaleY=".5">
        <s:Rect width="200" height="200">
          <s:fill>
            <s:SolidColor color="black" />
          </s:fill>
        </s:Rect>
      </s:Group>
    </s:Application>

  • 相关阅读:
    MySQL性能优化的最佳20+条经验
    memcached demo 应用例子
    关于 MySQL 主从复制的配置(转)
    java date 日期 利用 Calendar 实现增加一年月日时分秒
    Struts2中s:set标签和s:if标签小结
    hibernate oracle 配置序列 实现自动增长
    mysql5.1.47二进制版本的安装(转)
    Confluence3.4的安装和配置
    linux MemCache安装手册
    Java实现文件拷贝的4种方法(转)
  • 原文地址:https://www.cnblogs.com/tsg0723/p/2643009.html
Copyright © 2020-2023  润新知