Posts of September 21, 2009

Infinite Horizontal Menu in AS3

I decided a few things up front, first that each element would be the same width and that each time you moved the menu it would move the width of one menu element. Next I decided only to focus on moving it in one direction, left. Getting the elements to move was simple. I first was thinking about using some type of hit test to tell what objects were visible and based on the width of the menu figuring out what I needed to show. I decided that this would not be a good way to do it since it might make the script unadaptive to some situations (and one of the goals of this was to be able to reuse it in future projects).

About

I am a Chicago based web developer about to graduate college from Columbia who also likes to dabble in UI design. I enjoy building all kinds of web applications in all types of languages. When coding I try to follow the DRY philosophy as best I can as well as making my web sites as semantic as possible. More about me.

Ben Mills (Me!)