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.
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?
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:
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
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.
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: