AS2 → AS3: Setting A MovieClip’s Color Dynamically

Download Example Files
The Color class has been deprecated since Flash 8 but was still usable in AS2 to set/get a MovieClip’s RGB values. That has since changed in AS3 and here is the new way of doing things.


AS2 → AS3: LoadVars AS3 Equivalent

Download Example Files
ActionScript 3 has done away with the LoadVars class and when I was updating my ContactForm for AS3 I was trying to figure out how to mimic the sendAndLoad() method that LoadVars provided. I stumbled upon an article by Peter Elst which explained how to do this so I’m going to outline [...]


Using Search Engine Optimization (SEO) In Flash

Download Example Files
After reading an article on SEO and Flex by Ted Patrick and another by Josh Tynjala, I recalled my foray into doing this on a recent Flash project at work. I figured that I should share this with everyone because I know a huge knock on Flash is that it isn’t SEO [...]


AS2 → AS3: Loading & Playing External Sounds

Download Example Files
Loading and playing external sounds in AS3 is not far off from its AS2 counterpart. The code, as usual in AS3, is a little different because of the new event model, but really boils down to the same thing.


Using Google Analytics In Your Flash Projects

Download Example Files
Many times people think that you lose tracking ability in your projects if you use Flash. Of course you can set up multiple SWFs and host them on separate HTML pages on your site, but why bother? You can use Google Analytics to track your button clicks and report to you [...]


AS2: Animating Filters With Fuse

View Example
Download Fuse
Download Example Files
I still use Fuse for my scripted animations in AS2 so I figured I'd show how I animate filters using Fuse in AS2 projects. In this instance, I used the glow filter to animate when you roll over a button. The filter animation in Fuse is pretty much the [...]


AS2: SharedObjectManager

View Documentation
Download Class
A simple utility to manage shared objects and their properties.
PLAIN TEXT
Actionscript:

import mx.events.EventDispatcher;

import mx.utils.Delegate;

 

/**

* A simple utility to manage shared objects and their properties.

*

* @usage

* <code>

* <pre>

import com.reintroducing.utils.SharedObjectManager;

var som:SharedObjectManager = new SharedObjectManager("userData");

som.setProperty("hasVisited", "yes");

trace(som.getProperty("hasVisited"));

* </pre>

* </code>

*

* @author Matt Przybylski [http://www.reintroducing.com]

* @version 1.0

[...]


AS2: Record & Save Audio To Server With Flash Media Server

Download Example Files
The other day I posted a tip on how to set up Flash Media Server Developer Edition locally on your PC. To reiterate, I'm by no means an expert with Flash Media Server and this was the only test I had done with it, but I figured I'd show how to record [...]


Setting Up Flash Media Server Developer Edition For Newbs

A couple of weeks ago I had the honor of doing a little Flash Media Server work for the first time in my life. I had never worked with FMS nor did I know a lick about it, but I Googled it to a frenzy and found some useful little things. Without having [...]


AS2 → AS3: Scripted Tweening

Download Example Files
Download TweenLite
The Tween class hasn't changed at all since moving from AS2 to AS3, but there are some subtle differences in handling the events in it because of the new event architecture. Let's take a look at the code to tween a box diagonally down the stage in AS2:
PLAIN TEXT
Actionscript:

import mx.transitions.Tween;

import mx.transitions.easing.*;

 

var [...]