How to make my script more efficient

Greeting and happy new year, people.

Working on a little menu thing of mine, and I’ll be the first one to point out that I’m a complete n00b and lets be done with it. :slight_smile:

See attached file.

As you can see my actionscript works, sort of, but it’s going to be a living hell to work with after a while. Theres 33 lines of code with 4 menu items, and I’m probably going to hit at least 15 before I even get properly started.

So the 4th menu item is using 14 lines of code now, and two more will be added for each new menu item. If im not much mistaken my 15th menu item will be 34 lines of code. Thats a grand total of 294 lines. Just for a menu.

Please, if you can think of any way I can make this script a little more efficient and easier to update, please let me know.

Also, if you have any other suggestions as to how to make my menu better, also, don’t be shy. :ub: