Line 42 - Next an onPress function is created for the main button.
Line 43 - menuOpen is checked to see if it's false (!menuOpen)
Line 44 - If is false, that means to menu is closed, so the current time (getTimer) is assigned to 'theTime'. This variable will then be used as an interval between each button scrolling.
Line 45 - Now that the button has been pressed, while it's closed, menuOpen is set to true.
Line 46 - 48 - A FOR loop is then used to make each button visible.
Line 49 - 51 - If menuOpen is true (else) and the main button MC is pressed the menu is currently open, so the closeMenu() function is called. |