Free ActionScript

Flash AS2 & AS3 Tutorials, Game Code, Effects, Source Files & Sample Downloads

Bitmap Trailer using Blitting technique

This is an AS3 mouse trailer example using the Blitting technique.

From Wiki on Blitting: “A classic use for blitting is to render transparent sprites onto a background.”

So instead of having 100′s of movieclips on the screen at the same time, you only have 1 bitmap object. This dramatically improves performance.

This also allows you apply filters to this bitmap image to achieve all kinds of fancy effects, such as this trailer using blur and alphaMultiplier (bitmap alpha control).

Preview v1.0.0

Download Fla Sample

Download Fla Sample

Endless Parallax Scrolling

This is a parallax star field scrolling effect. It gives the illusion of moving through 3d space. This effect endless and will continue scrolling forever.

Download Fla Sample

Download Fla Sample

Update:
ActionScript 3 version of this script is available here:
http://www.freeactionscript.com/2010/06/endless-starfield-parallax-scrolling/

Bubbles Effect – Water, Beer, Liquid

Simple actionscript bubbles effect. Can be used in flash water games, beer banner ads, etc.

Download Fla Sample

Download Fla Sample

Bug Fix – 6.18.2009
Fixed an issue with the container size. Bubbles are now created based on container width/height.

Realistic Water & Wave Effect

Easy-to-use Flash AS2 dynamic water & wave effect.

Download Fla Sample

Download Fla Sample

To use, just copy the function and use it like so:
createWater(MyMovieClip);