Create a Compiled Clip to Reduce Clutter in Flash

Sometimes when you are delivered an animation to put into your flash project, it contains quite a lot of messiness in the library.

A quick way to resolve that issues is to make a ‘compiled clip’ before adding the animation to your project.

How to ‘smooth’ an FLV / F4V video for Scaling

Have you noticed that your embedded Flash video looks like crap if you scale your flash file up or down?

A lot of people don’t realize this, but you can actually apply smoothing to flash video, just as you can to a bitmap image.

Easily sort an Array of Strings: Longest to Shortest Word

So let’s say you are making some sort of a game or program in Actionscipt 3 that requires you to sort words in order from longest to shortest. for example:

1
var word:Array = new Array("this", "is", "a", "list", "of", "randomly","chosen","words", "to", "sort");

if you try something like:

1
trace(word.sort());

you will get the following:

a,chosen,is,list,of,randomly,sort,this,to,words

Problems with Tween and Using TweenLite

Have you had trouble with Adobe’s Tween class? (Used for so called “easy” ActionScript animation of display objects) I sure have, so I thought I’d write a post about it. When I was first taught how to animate with ActionScript, I had many a lock up and stutter from the Tween class. For awhile I was quite annoyed, seeing theĀ benefitĀ of animation using ActionScript but thinking that it was totally unreliable. Now there are a number of methods to fix the problems with Tween, using Dictionaries, new objects and so on; all of which seemed tedious and time consuming. Thankfully, I found a better solution, third party tweening engines! I’m going to tell you about what I think is the best one, TweenLite.

How to Pad a Number with Zeros + Simple Counter

At some point using Actionscript you may need to display a number that must always occupy a predetermined number of character spaces. An example would be a rolling game timer with a 5 digit display. For example, when the timer hits 33 seconds, the digits would display like so: 0 0 0 3 3