Free ActionScript

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

OOP: XML Loader & Display Manager

Here is an OOP XML Loader & Display Manager class that can be used in your projects to load and display XML data.

The XML comes in the following form:

<?xml version="1.0" encoding="utf-8" ?>
<data>
	<person name="Bob"></person>
	<person name="Jack"></person>
	<person name="Jill"></person>
</data>

Here is the SWF that loads it:

Class structure:
XML Loader & Display Manager

Download Fla Sample

Download Fla Sample

Custom number range sliders

I needed a custom range slider for selecting prices. It needed to have two draggers. One of low price, one for high price. Here is the result.

Low and High value is calculated based on the size of the slider track.

Easy to use and easy to customize. Only 3 movieclips make up the whole thing. Doesn’t use annoying built in flash components.

Read the rest of this entry »

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/

Simple Enemy Random Movement

Here is a simple AS2 enemy creation/ai script that allows you to create enemies that move about randomly inside a container movieclip. You can set custom movement boundaries/borders. When an enemy hits the border, it will “bounce off” and move in the opposite direction.

Random Movement Example

Download Fla Sample

Download Fla Sample