classes

AS3 String Utils

Ever needed a text excerpt which would must not be longer then 200chars, but must end with a whole world? You have two options:

1. program the function by yourself
or
2. use the wonderful AS3 String Utils class by gskinner, namely the block function.

The package comes with many other useful functions:

afterFirst()
Returns everything after the first occurrence of the provided character in the string.

afterLast()
Returns everything after the last occurence of the provided character in p_string.

beginsWith()

Script Image: 
string-utils.png
Script author: 
Grant Skinner

AS3 Core Lib

AS3Corelib is a set of useful AS3 classes. Some highlighted classes:

- JSON : decoder, encoder, parser

- MD5 : to MD5 hash a string

- SHA1 : to SHA1 has a string

- StringUtil : includes the trim function which removes leadign and trailing whitespace chars from a string

- ArrayUtil : includes also a very useful function removeValueFromArray which removes all instances of the specified value from the array

The package includes also other classes like DateUtil, XMlUtil, NumberFormatter, DynamicURLLoader and others.

Script Image: 
util_1.jpg
Script author: 
Christian Cantrell, Mike Chambers, Daniel Dura, Darron Schall

Bulk Loader

Bulk loader is a very useful class for loading multiple images / swfs/ mp3 or other files into your project. It provides an easy interface to monitor the progress, to pause and resume or to stop loading the "bulk" or an individual file.
The class is very well documented, extremely easy to use. Using this class you will virtually save hours of development time.

Script Image: 
util.jpg
Script author: 
Arthur Debert

Custom Registration Point for a MovieClip

Actionscript language does not provide a method for setting a registration point for a dynamically created MovieClip. There are many workaround how to deal with this issue, one of them is this nice organized class called DynamicMovie. You set the registration point and then call methods like scaleX2 to scale the movie with the registration point you set.

Script Image: 
util.jpg
Script author: 
Oscar Trelles