Flex4 组件倒影效果

需要 用到 Gonta.swc 库文件 下载地址 http://code.google.com/p/gonta/downloads/list

UIDY .mxml 代码

<?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" xmlns:filters="org.gonta.filters.*">
 <fx:Declarations>
  <!-- 将非可视元素(例如服务、值对象)放在此处 -->
 </fx:Declarations>
 <s:BitmapImage id="img1" source="@Embed('xinqi.jpg')" x="133" y="33" width="443" height="298">
  <s:filters>
   <filters:WetFloorFilter alpha="0.4" y="{img1.height}" height="{img1.height/3}"/> //添加倒影滤镜
  </s:filters>
 </s:BitmapImage>
</s:Application>

posted @ 2011-03-25 22:59  小君仔  阅读(794)  评论(0编辑  收藏  举报