Flex给图片加倒影效果

1.首先下载Gonta.swc http://code.google.com/p/gonta/downloads/list

2.引入lib

3.代码

<?xml version="1.0" encoding="utf-8"?>
<!--created:Nov 22, 2010 file:ImageReflex.mxml  author: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:filters="org.gonta.filters.*" viewSourceURL="srcview/index.html">
 
    <s:layout>
        <s:VerticalLayout verticalAlign="middle"
                          horizontalAlign="center"/>
    </s:layout>
    <s:BitmapImage id="img"
                   source="@Embed('images/reflex.png')">
        <s:filters>
            <filters:WetFloorFilter alpha=".5"
                                    y="{img.height}"
                                    height="50"/>
        </s:filters>
 
    </s:BitmapImage>
</s:Application>
 

你可能感兴趣的:(html,xml,Google,Flex,Adobe)