HomeAbout

ArrayBinder for Flash CS3

From the site:

I’ve written a class that can help separate the view from the model in Flash projects. It is by no means equivilent to data binding available in Flex (and far from it!) but I’ve used bind in the title because it does effectively bind the values held in an ArrayBinder instance to object properties that have subscribed to refer to those values. The specific use that I have in mind for ArrayBinder is in assisting with localising interfaces for applications that are developed in Flash CS3.  

 

http://fboyle.com/blog/?p=10 

Combinator

From the site:

The usage of Combinator class is very simple. It takes the input array of items and defined size (combination number) of combination arrays that can be produced in a loop.
Suppose we need to generate all three-number combinations from numbers 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. We put them in array, instantiate the Combinator and call its next() method in a loop until there are no combinations left.

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

Permutator

From the site:

A time ago I wrote about the Array Combinator ActionScript class for generating all combinations of items from an input array. Now I have revisited the API with the abstract Generator class and also added a new class for generating permutations of items from the input array - Permutator.

http://lharp.net/?p=16

PriorityQueue

http://shockwave-india.com/blog/?archive=2004_07_01_archive.xml#109038436727337119

MovieClipHistory

from the docs:

Provides a way to record and replay many methods used in dynamically defining a movie clip’s visual appearance. Methods recorded can be replayed on the original movie clip or another movie clip which is to “inherit” the original movie clip’s dynamic appearance. Supported methods include:

  • attachMovie
  • duplicateMovieClip
  • createEmptyMovieClip
  • loadMovie
  • swapDepths
  • removeMovieClip
  • lineStyle
  • beginFill
  • beginGradientFill
  • endFill
  • moveTo
  • lineTo
  • curveTo
  • clear

These methods are overridden for the movie clip so that new, history recording methods can be used in their place. The new methods record the method call and call for the movie clip the original method.

http://www.senocular.com/flash/actionscript.php?file=ActionScript_2.0/MovieClipHistory.as

Part of senocular’s Actionscript library.

Array Combinator

Generate sets of different combinations from an array of items.

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