支持拖动和有倒影效果的容器

      flex专区 2008-7-3 17:18

倒影容器mxml代码:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
 xmlns:reflector="com.rictus.reflector.*"
 xmlns:dragpanel="com.rictus.dragpanel.*"
 layout="absolute" backgroundColor="#000000" viewSourceURL="srcview/index.html" width="400" height="450">
 <dragpanel:DragPanel id="panel1" width="300" height="194"  title="鼠标可以拖动Panel" layout="absolute" x="50" y="94">
  <mx:Label x="18.5" y="103" text="透明度:" color="#000000"/>
  <mx:Label x="225.5" y="102" text="{alphaSlider.value}" color="#000000" width="36"/>
  <mx:Label x="18.5" y="124" text="倒 影:" color="#000000"/>
  <mx:HSlider id="falloffSlider" x="69.5" y="120" liveDragging="true" showDataTip="false"
   width="159" minimum="0.0" maximum="1.0" value="0.7" snapInterval="0.01"/>
  <mx:Label x="225.5" y="126" text="{falloffSlider.value}" color="#000000" width="36"/>
  <mx:HSlider id="alphaSlider" x="69.5" y="102" liveDragging="true" showDataTip="false"
   width="159" minimum="0.0" maximum="1.0" value="0.3" snapInterval="0.01"/> 
 </dragpanel:DragPanel>
 <reflector:Reflector target="{panel1}" alpha="{alphaSlider.value}" falloff="{falloffSlider.value}"/>
 <mx:Label x="50" y="10" text="拖动倒影" color="#FFFFFF" fontSize="22"/>
</mx:Application>

标签集:TAGS:
回复Comments() 点击Count()

回复Comments

{commentauthor}
{commentauthor}
{commenttime}
{commentnum}
{commentcontent}
作者:
{commentrecontent}