Ok, here's something (hopefully) useful.
Before I got seduced by the many advantages of the blog format, I was going to make my site fully in Flash. One of the things I had already created for it is this pretty robust little dropdown-menu system, the sourcecode of which I decided to share for the benefit of all mankind.
The menu-tree is defined by an XML-structure. The main DropDownMenu class uses a Singleton-like setup to make sure only one instance of it exists at any given time, and access to it from other classes is straightforward. Each menuitem is able to call any function + arguments you specify.
It handles timeout/mouseout disappearance pretty well (many similar menus mess that up), it's already hooked up to play sounds, and - most importantly - it just looks cool.
Since it was sort of ripped out from a larger framework it's not super-optimized or extensively documented, but it should still be fairly easy to understand.
You can download the ActionScript3 source by clicking HERE, and you can play with it right here:

























0 comments
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment