Grouping Objects within a Given Threshold

Grouping Objects within a Given Threshold

This one was driving me mad for some time. Not sure why but I have a proper mental block over it. Anyway I found a solution.

The problem:

You have and array of MovieClips that you want to add to the stage but you only want to display at any one time as many MovieClip as will physically fit within the boundary of your movie. For example, Your height limit is 400px and the first MovieClip is also 400px. Thus subsequent movies are forced into another “page.” MovieClip 2 and MovieClip 3 are both 150px high so that can both fit on page 2 and so on and so on.

read more

Pre-loaders in Action Script Only projects and Flash Builder 4

Pre-loaders in Action Script Only projects and Flash Builder 4

Frameworks are great for producing RIA’s quickly but sometimes their overuse can result in over inflated file sizes, a poor user experience and an overloaded server. When file size is the most important factor you may consider building an ActionScript 3 project. However, this option creates a problem straight from off the bat., How do you pre-load an AS3 only project?

read more

FLASH Quick Tip 1: Removing all objects from the Display List

FLASH Quick Tip 1: Removing all objects from the Display List

Flex users will not have a problem here. They can use removeAllChildren() but Flash users are limited to removeChild() and removeChildAt(). The below code a simple way of removing children from a give Display Object or MovieClip:

read more

ComputeSpectrum experiment from 2008

ComputeSpectrum experiment from 2008

This is something I put together about two years ago. Unfortunately, I have lost the source code so my explanation as to what s going on is going to have to. I think I might try and revisit this over the next few months and make it into something dynamic (and processor friendly). Anyway, I hope you enjoy

read more

Random AS3 Grass generator class

Random AS3 Grass generator class

I through together this little class the other day for making random generated grass effects. Thought some of you may find it useful for level style games, banners and the like. So here you go hope someone finds it of use.

read more

Sub and Superscript, Dynamic Text and Flex

Sub and Superscript, Dynamic Text and Flex

As I am sure many of you have experienced, the lack of support for Sub and Superscript in dynamic text fields is a major pain in the bum. Thankfully “G” and GG’s Flash Blog has kindly given us a solution and offered his own sub/superscript fonts free for us to use. His blog can be found at: http://blog.ggshow.com/ and the fonts are available to down load from: http://blog.ggshow.com/index.php/downloads/2008/09/21/download_free_truetype_fonts.

So here is my quick and dirty method of using these font in FLEX:

read more