guangqiang 发表于 2013-2-7 16:04:42

Mouse Rollover效果--显示自定义控件 (第一层)

<?xml version="1.0" encoding="utf-8"?><!--created:Oct 6, 2010 file:FLEX4EffectExample1.mxmlauthor:Michael --><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"               backgroundColor="0"               xmlns:comp="comp.*" viewSourceURL="srcview/index.html">   <s:layout>      <s:VerticalLayout verticalAlign="middle"                        horizontalAlign="center"/>    </s:layout>   <fx:Declarations>      <s:Animate id="myAnimate"                   duration="800"                   easer="{this.linearEasing}">            <s:SimpleMotionPath property="height"                              valueFrom="0"                              valueTo="50"/>      </s:Animate>      <s:Animate id="myAnimate1"                   duration="600"                   easer="{this.linearEasing}">            <s:SimpleMotionPath property="height"                              valueFrom="50"                              valueTo="0"/>      </s:Animate>      <s:Linear id="linearEasing"                  easeInFraction="0"                  easeOutFraction="1"/>    </fx:Declarations>   <fx:Script>      <!]>    </fx:Script>    <s:BorderContainer backgroundImage="@Embed('images/images.png')"                     backgroundImageFillMode="clip"                     id="bc"                     width="400"                     height="296"                     cornerRadius="4"                     creationComplete="bordercontainer1_creationCompleteHandler(event)">    </s:BorderContainer></s:Application>
页: [1]
查看完整版本: Mouse Rollover效果--显示自定义控件 (第一层)