每天学一点flash (29) 缓冲与模糊效果

      树人的叶子 2008-1-2 23:55

import mx.transitions.Tween;
import mx.transitions.easing.*;
import flash.filters.BlurFilter;
 
var i=0;
var j=0;
_root.btn.onRelease=function(){
 ball = new Tween(pic, "_x", easeType, 20, 400,1.5, true);

onEnterFrame = function () {
 lvjing = new BlurFilter();
     if(pic._x>=100 && pic._x<=300 )
  {   for(i=0;i<50;i++)
   {lvjing.blurX =i;
  pic.filters = [lvjing];
   }
  }
  else if
  (    pic._x<=350 && pic._x>300)
   {     for(i;i>0;i--)
    {lvjing.blurX =i;
       pic.filters = [lvjing];
    }
    }
}
 
}

标签集:TAGS:缓冲与模糊效果
回复Comments() 点击Count()

回复Comments

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