Free ActionScript

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

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/

Simple Flashlight Effect

Here’s a very simple Flash flashlight effect that uses almost no ActionScript. The only AS used is for rotation and key detection.

The effect is archived with a mask and a filter. The filter is a simple gradient fill, same color as the “dark”. One side the alpha is 100, the other size alpha 0. Both the mask and the filter are the same shape and size (I’m using the same movieclip actually). To make everything work, you have to rotate and move the filter and mask at the same time (along with the player).

Preview

Download Fla Sample

Download Fla Sample

Also note the center registration point for the filter, mask and player. Make sure everything is aligned or the effect will break.

Animated Explosion Effect

Animated Explosion Effect

Download Fla Sample

Download Fla Sample

Update
AS3 version of this effect is available here:
http://www.freeactionscript.com/2011/08/dynamic-explosion-generator/

Sparkle Effect

A simple animated sparkle effect. You can easily change settings to customize the look.

  • sparkNumber – number of sparkles per click
  • sparkDistance – offset distance from click
  • sparkSize – particle scale
  • sparkAlpha – particle alpha

Sparkle Effect

Download Fla Sample

Download Fla Sample