Get Adobe Flash player

Posts Tagged ‘RangeList’

Extending the RangeList Class

Monday, February 25th, 2008

This will be quick. I’ve extended the functionality of my RangeList class and made 2 menu systems. The first is what I’m calling a Multi-Set Menu. Which is simply a set of n number of 1-dimensional menus. The example I am providing is a bit crude, but it illustrates the point, this could be put to good use creating a dynamic drop-down menu system of some sort. The second menu is a grid system, not much more explanation needed for that one. The Grid Menu is also a little less crude, and generates a grid dynamically given a class type for the menu items via String. I was hoping to offer the ability to create a grid either dynamically or statically from items on the stage, but without method overloading in AS3 I decided not to come up with an alternative solution, however I simply just commented out the static constructor if you are up for some minor tampering. Also I’m using Tweener for the animation, it is just easier (and pretty efficient).

Click on the example and use the Arrow Keys to see how the menu works.

Get Adobe Flash player

Get Adobe Flash player

These examples are available for download here.

Comments, Thoughts and Questions always welcomed.

-Andrew