as3: ALFluid

[ 2009-08-17 17:40:05 | Author: liuhuan ]
Font Size: Large | Medium | Small
uploads/200908/21_170321_untitled4.jpg


ALFluid create melt effect on bitmap in Flash, developed by alumican.net(http://alumican.net/)


download: http://www.libspark.org/browser/as3/ALFluid/
package{
  import flash.display.*;
  import flash.events.MouseEvent;
  import net.alumican.as3.alfluid.*;
  
  public class Main extends MovieClip{
    public function Main():void{
      var source:BitmapData = new BitmapData(pic.width, pic.height, false);
      source.draw(pic);
      var melt:Melt = new Melt(source, false, 10, pic.width, pic.height);
      melt.fluidMagnitude = 50.0;
      melt.fluidFlowSize = 1.5;
      melt.x = pic.x;
      melt.y = pic.y;      
      melt.fluidUseDecay = true;
      addChild(melt);
    }
  }
}

download source: Click Here To Download
[Last Modified By liuhuan, at 2009-08-21 17:03:40]
Comments Feed Comments Feed: http://www.liuhuan.com/blog/feed.asp?q=comment&id=1011

There is no comment on this article.

You can't post comment on this article.