HomeAbout

Text Search Engine Class

From the site:

Create text search engines in ActionScript easily using this versatile and lightweight class. It can be used in a simple way, or with expert features such as excluded characters, case sensitivity, etc.

http://www.pippoflash.com/index.php/2006/07/10/downaload-flash-text-search-engine-class/ 

Array Combinator

Generate sets of different combinations from an array of items.

http://lharp.net/post/array-combinator/ 

W3CDateTime

From the class:

Represents a date in the W3CDateTime format as described in http://www.w3.org/TR/NOTE-datetime

http://weblogs.macromedia.com/mesh/archives/2004/02/w3cdatetime_act.html

MD5 Hash

Encrypt a string by using an md5 hash

http://www.devpro.it/as2_id_44.html

Reactionary Scrolling

Turn any movieclip into a scrollable area that reacts to mouse position.
http://www.hotrocket.ca/flightpath/?p=99 

Document Class in AS2

Assign a class to the root timeline in AS2.

Document Class in AS2

ColorMatrix

From the site:

The new ColorMatrixFilter is a very versatile tool that allows for many color manipulations, many more than the good old ColorTransform was capable of. The only problem with the filter is that in order to use it you will have to feed it with a ColorMatrix which in pratice is an array of 20 elements. Not really the most intuitive way…The ColorMatrix class takes care for all the matrix operations that are necessary to achieve those effects.

Demo and source: http://www.quasimondo.com/archives/000565.php

Proxy

Flash's Delegate class doesn't allow you to pass extra parameters to a method when using Delegate.create(). Use the Proxy class instead.

http://www.person13.com/articles/proxy/Proxy.htm

Actionscript:
  1. class SomeClass {private var _sProperty:String;public function SomeClass(sURL:String) {var lvInstance:LoadVars = new LoadVars();// The syntax for ascb.utils.Proxy.create( ) is similar to that of Delegate.create( ).
  2. // However, you can also specify additional parameters to pass along to the method.
  3. lvInstance.onData = ascb.utils.Proxy.create(this, assignText, "some property value");
  4. lvInstance.load(sURL);
  5.  
  6. }
  7.  
  8. private function assignText(sText:String, sAnotherParameter:String):Void {
  9.  
  10. _sProperty = sText;
  11.  
  12. // Much simpler.
  13.  
  14. trace(sAnotherParameter);
  15.  
  16. }
  17.  
  18. }</div>
  19. <div>

ImageLoader

Smooth loaded images by default
http://www.martijndevisser.com/blog/article/imageloader-class-for-flash-8

Color Mutation

Smoothly tween an mc's color in AS 3

http://www.onflex.org/code/2006/08/as-class-color-mutation-class-by-jaco.html