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

  • 相关阅读:
    bzoj5137 [Usaco2017 Dec]Standing Out from the Herd
    bzoj2434 [Noi2011]阿狸的打字机
    【20181024T2】小C的序列【GCD性质+链表】
    【20181024T3】小C的宿舍【分治】
    【20181024T1】小C的数组【二分+dp】
    【20181023T2】行星通道计划【二维BIT】
    【20181023T1】战争【反向并查集】
    【20181020T1】蛋糕
    【20181019T2】硬币【矩阵快速幂优化DP】
    【20181019T3】比特战争【最小生成树思想】
  • 原文地址:https://www.cnblogs.com/tsg0723/p/2643009.html
Copyright © 2011-2022 走看看