AS2/AS3: CustomEase

View Blog Post
Jack Doyle, the maker of TweenLite/TweenFilterLite/TweenMax (and as I’m sure you already know if you read this blog, a good friend of mine) has done it once again. He’s created a class called CustomEase which allows you to create custom easing equations for usage in your tweening engines (although you should really [...]


AS2 → AS3: Attaching Sounds From The Library

Download Example Files
AS3 no longer has an attachSound() method in the Sound object so attaching sounds from the library is a little different. It’s actually more intuitive (as usual with AS3) because it acts just like attaching bitmaps and other objects out of the library.


Clearing A BitmapData’s Contents

I’ve been using BitmapData lately more and more (I know, I’m very late to the party) and something that I was curious in was how to clear it before I can draw to it again so that the previous frame’s contents are not in it. Particularly, I was wondering how I can very simply [...]


SharedObjectManager v1.1 Updates

Reader Stéphane e-mailed me last week with a problem he was having using the SharedObject in Flash. Basically, Stéphane wanted to save some data in one SWF file to a SharedObject and then retrieve that data in another SWF file. I had done this before many times but quickly realized that I had only [...]


Converting Strings To Booleans

If you’ve downloaded my Image Slider, you may have looked at the Main.as file and noticed that I was using a utility class to convert the loaded string values for things that are actually booleans from the XML. I was originally loading them and I couldn’t figure out why when I traced out what [...]


AS2 → AS3: Retrieving FlashVars

Download Example Files
I was recently working on the Image Slider that I posted here a couple of days ago and I realized I didn’t know how to access FlashVars in AS3. I quickly did a Google search and came up with the solution rather easily.


AS2 → AS3: Setting Masks Dynamically

Download Example Files
The more migrating I do to AS3 the more little nuances (at least nuances when I am migrating) I find. A lot of small little methods have been switched or moved into new classes and it’s always a bit of a drag to find them. Such is the case with the [...]


AS2 → AS3: Depth Management

Download Example Files
Managing depths in AS2 was pretty cumbersome and annoying. You had to use methods like getNextHighestDepth() or keeping track of depths manually to make sure everything appeared on the stage properly and didn’t overwrite each other. Enter AS3 FTW!


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 [...]