# Advice creating a quirky menu

**URL:** <https://forum.kirupa.com/t/advice-creating-a-quirky-menu/309367>\
**Category:** flash\
**Created:** [May 13, 2010, 1:57am UTC](https://forum.kirupa.com/t/advice-creating-a-quirky-menu/309367 "2010-05-13T01:57:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SplashKhat](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@SplashKhat](https://forum.kirupa.com/u/SplashKhat)\
**Post date:** [May 13, 2010, 1:57am UTC](https://forum.kirupa.com/t/advice-creating-a-quirky-menu/309367/1 "2010-05-13T01:57:25Z")

</div>

So I have an animation I’m working on, its dialog driven and I want a vertical menu of questions the viewer clicks on. When its clicked it plays a specific sequence of animation, that part I have covered. Depending on the question clicked however, I want the menu to update with follow up questions.

-several menu items need to open up new menu items.  
-the new menu items appear beneath the previous item.  
-each new menu item needs to highlight text.  
-each used menu item needs to dim text.

I’m mostly a script kiddy, I find stuff similar to what I need and take it apart and rebuild it to my needs. But I haven’t found anything of this sort. The closest thing I have is creating a menu with an array.

I thought to assign the initial array values to questions as they would appear on a complete list. The idea is at the end of a string of dialog to run a check on a specific array value, if it comes up false, create that value and hence the new menu item is in it’s proper place on the list (including appropriate highlight/dim text color). The problem is that when I run a trace I get a bunch of undefined values in-between. I don’t want a menu with “undefined” text labels/buttons, is there a way to run a check for undefined during the menu loop and tell it to skip to the next value?

is this the best way to handle this project? I’d rather not create a complex movie clip of every possible menu configuration and run a ton of value checks with goto frames.

any resource/script/advice is appreciated.
